← Living Brand index
Currently linked: colors-light.css

The Living Styleguide

CSS Zen Garden Demo · one <link> swap, zero HTML changes
Proof
01

The whole point

Everything below — the hero, the badges, the buttons, the verdict row, the code block — is styled entirely through var(--name) references. Not one of them is a literal hex value. Click the button above and watch the entire page re-skin from one line of JavaScript changing one attribute.

Complexity is earned, not adopted.

This hero, like every other element on this page, reads its color entirely from whichever file is linked above. The class names never change — only the values behind them do.

Deterministic Root cause Warning Coral Attention Pass Signal Context
Note

This callout is the same recipe used on living-styleguide-teaching-elements.html — a left-border box with an uppercase label. Nothing about its markup or class names is different here.

const link = document.getElementById('colorFile');
link.href = link.href.includes('light')
  ? 'colors-dark.css'
  : 'colors-light.css';
// that's the entire swap. no class names touched.
The contract that makes this work

Same names, different values, nothing else

colors-light.css and colors-dark.css declare the identical set of 34 token names. Every color reference on this page — and on the other 21 pages that now link colors-light.css — goes through one of those names, never a literal hex. That's the whole mechanism. No component framework, no build step, no class-name rewrite.

Created for you, with ❤️ by Robert Evans · The AI Design Architect