html-stylelisted
Install: claude install-skill TsukiNi22/ai-utils
# HTML style
`SKILL_DIR` = directory of this file. The source of the style is `templates/style.css` (CSS) + `templates/base.js`
(behaviour), extracted from `html-doc/templates/technical.html`. `html-doc` (documentation pages) and `explain-doc`
(explanation pages) are built on it; any other HTML page of the user uses it too.
## 1. New page
```bash
python3 SKILL_DIR/scripts/new_page.py <body.html> -o <out.html> [--css extra.css] [--js extra.js] \
[--actions actions.html] [--lang-switch] --set PROJECT="Name" TITLE="Page title" FOOTER="..."
```
`<body.html>` = what goes inside `.layout`: an optional `<aside class="sidebar" id="sidebar">` (contents list) and
`<main>` (`<header>` with `.page-eyebrow`, `h1`, `p.lead`, then one `<section id>` card per topic). The script
inlines `style.css` + `base.js` (+ the extra files, after them) into `templates/page.html`: the result is **one
self-contained file** that works offline and from `file://`. `--attr NAME=VALUE` adds attributes to `<html>`
(`data-page`, `data-nav-title`, `data-default-level`). Several pages in one folder: `scripts/sync_nav.py <folder>`
fills the top tabs / previous-next cards of every page (`html-doc` and `explain-doc` pages together) and gives
them the same brand and shared top bar controls (GitHub link, EN / FR switch), reporting a page without French. Without a sidebar, add
`.layout { grid-template-columns: minmax(0, 1fr); max-width: 880px; }` in the extra CSS.
## 2. Tokens (never a raw color in a component: a