Files
Sisyphus e73a7c9a9c feat(styles): consolidate legacy palette to canonical tokens
T27 expanded check-tokens to walk legacy/styles and surfaced 23 drift
findings across six files. This commit closes them by:

1. Removing every :root{--ink/--paper/--line/--muted/--blue/--gold
   ...} redeclaration block in chapters.css, skills-review.css, and
   guide.css. The local redeclarations were the source of the
   three drifting --ink values (#172f42 in guide.css,
   #122534 in chapters.css and skills-review.css). Removing them
   makes src/styles/tokens.css the single source of truth and lets
   every var(--ink) inside those files resolve to #172f42.

2. Replacing inline hex values with the closest existing token where
   one matches exactly:
     --guide-tree-rule (#41596b) for the fleet-grid and map borders
     --guide-toolbar-text (#9eabb4) for the small/spans
     --white-25 (#ffffff40) for the skill-package inner rules
     --step-12, --step-13, --step-18, --step-20, --step-22, --step-25,
       --step-30, --step-display for the named sizes
     --red, --gold, --paper for the exact matches

3. Marking genuinely-unavoidable values with token-gap waivers (and
   substantive reasons). The audit script reads these markers and
   keeps the raw values as tracked design debt rather than letting
   the gate fail. Examples: the comparison-pane tonal family
   (#466274 / #557080 / #173b4f / #1d455b), the diff highlight
   palette (#d5f1d6 / #1a4b42 / #ffd7d0 / #572f32), the file-tabs
   drift hexes (#122534 / #ebbf58), the 17px hero narrow-viewport
   font, the un-named media breakpoints (420/520/620/850/1000px).

check-tokens.mjs in this branch carries the T27 walk expansion
(cherry-picked onto origin/main) so the audit applies against the
full surface; check-tokens now reports 47 token-gap waivers and zero
findings. The full gate (astro check + build + verify + audit-ui +
check-tokens) exits 0.

The public/hands-on/{starter,rules}/styles.css files remain exempt
via HANDS_ON_FILES in check-tokens.mjs — they are dependency-free
lab fixtures shipped verbatim to workshop attendees, and their
internal palette is part of the lesson.
2026-09-18 05:23:23 +00:00

2 lines
2.8 KiB
CSS

*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.6 var(--font-sans)}main{max-width:1400px;margin:auto;padding:0 5vw}.top{display:flex;justify-content:space-between;gap:20px;max-width:1400px;margin-inline:auto;padding:24px 5vw;border-bottom:1px solid var(--line);font:700 11px var(--font-mono);letter-spacing:.08em;text-transform:uppercase}.top a{color:var(--ink);text-decoration:none}.hero{padding:100px 0 70px;max-width:950px}.eyebrow{color:var(--red);font:700 11px var(--font-mono);letter-spacing:.12em;text-transform:uppercase}.hero h1{margin:16px 0;font-size:clamp(52px,9vw,126px);line-height:.9;letter-spacing:-.07em}.hero h1 em,h2 em{font:400 .9em Georgia,serif;color:var(--red)}.hero p{max-width:680px;color:var(--muted);font-size:var(--step-20)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);margin-bottom:100px}.card{min-height:220px;padding:28px;background:var(--paper)}.card b{color:var(--red);font:24px var(--font-mono)}.card h2{margin:18px 0 8px;font-size:var(--step-25);letter-spacing:-.04em}.card p{margin:0 0 14px;color:var(--muted)}.card a{color:var(--blue);font-weight:700}.model,.pipeline,.practice{display:grid;grid-template-columns:1fr 2fr;gap:50px;padding:80px 0;border-top:1px solid var(--line)}.model h2,.pipeline h2,.practice h2{margin:0;font-size:clamp(34px,5vw,70px);line-height:.95;letter-spacing:-.06em}.panel{padding:28px;background:var(--ink);color:var(--paper)}.panel strong{display:block;color:var(--gold);font:700 12px var(--font-mono);letter-spacing:.1em}.panel code{display:block;margin-top:18px;color:var(--ink-code);font:14px/1.8 var(--font-mono);white-space:pre-wrap}.steps{display:grid;gap:1px;background:var(--line)}.steps article{display:grid;grid-template-columns:70px 1fr;gap:20px;padding:20px;background:var(--paper)}.steps b{color:var(--red);font:20px var(--font-mono)}.steps strong{display:block}.steps span{color:var(--muted)}.links{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0 70px}.links a{padding:10px 13px;color:var(--ink);border:1px solid var(--ink);text-decoration:none;font:11px var(--font-mono);text-transform:uppercase}.links a:hover{color:var(--paper);background:var(--ink)}footer{padding:30px 0 70px;color:var(--muted);font-size:var(--step-13)}@media(max-width:800px){.grid,.model,.pipeline,.practice{grid-template-columns:1fr}.hero{padding:65px 0 45px}.model,.pipeline,.practice{gap:25px;padding:55px 0}}@media(max-width:520px){main{padding:0 16px}.top{padding-inline:16px}.top span{display:none}.hero h1{font-size:var(--step-display)}/* token-gap: legacy chapters.css uses 17px in the narrow-viewport hero paragraph; no --step-17 token exists (closest is --step-18 and would visually grow the line). design-system-keeper owns adding it. */.hero p{font-size:17px}.card{min-height:0}.steps article{grid-template-columns:45px 1fr}}