← ClaudeAtlas

html-stylelisted

The user's visual style for any HTML page (taken from html-doc - R-Type doc colors + context-forge layout) - color tokens for the light and dark themes, system font stacks and type scale, spacing / radius / layout / breakpoints, components (top bar, cards, callouts, tables, code blocks with copy, content tabs, sidebar, pager, SVG diagram classes, sun/moon theme switch, EN/FR switch), rules (responsive on phone, tablet, TV and touch screens, self-contained, no CDN / web font / gradient / emoji, WCAG contrast in both themes) - with scripts to build a self-contained page (new_page.py) and check a page or a palette (check_style.py). Use whenever creating or restyling an HTML page, a small web tool, a dashboard or a page component for the user, or when defining / changing a palette, color, font or theme, unless the user asks for another style.
TsukiNi22/ai-utils · ★ 1 · Web & Frontend · score 74
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