Console UI: build from the kit's pieces, never from scratch
- Open
references/tokens.cssand paste the:rootblock unchanged. Never retype a colour; add a new token there first, then use it. - Take each element from
references/components.md(card, dot, step bar, tick row, table). If a piece is missing, add it to the file, then use it. Do not make a one-off. - Colour means status: green done, amber needs you, red blocked, cyan live, grey not started. The look is dark with neon in three tones (
--neon-hi,--neon-mid,--neon-lo): one hi card per page. - Make it pulse, cheaply: only
transformandopacityanimate. Add reduced-motion. - Numbers use
tabular-nums. Text lines at most 65 characters wide. Labels in sentence case, never shouting capitals; plain header (no>,_,#). - Words are for a business owner: no tool names, no ids first.
- Verify what is built: muted text at least 4.5:1 contrast; every control has a visible keyboard focus; selection colour is themed.
- Never: a coloured side stripe wider than 1px, an eyebrow label above each heading, nested cards, the big-number-plus-tiny-label template as the page structure, gradient text anywhere except the page title. The owner's brief wins over any generic default: neon, glow, rings and the indigo/violet palette are declared choices (see
docs/console/DESIGN.md). - The default look is deep indigo surfaces with a Violet accent (
--bg #0c0820,--panel #16123a, accent from--acc). Status colours keep their meaning and are never themed. - Responsive is structural: every page has
<meta name="viewport">; under 900px the header wraps and the tab bar scrolls inside itself; under 640px tables scroll inside their own box and margins shrink; on touch screens controls are at least 40px. The page itself never scrolls sideways. Check 390px and 820px. - Every component has its states: default, hover, focus, disabled, loading (a skeleton or a plain "Reading..." that really goes away), error with the way out, and an empty state that says what to do next.
- Before saying done, run
python Claude/hooks/ui_lint.py, fix every line it prints, and look at each page at 390, 820 and 1280px in a real browser tab.
A page that cannot be built from these pieces is a sign a piece is missing: add the piece, do not bend the page.