Every screen is built from about 40 semantic tokens (--surface, --text-2, --agent…). A theme is just a different set of values for the same names, switched by one attribute on the root: data-theme="dark".
prefers-color-scheme.Motion confirms what just happened and where to look. It is quick, animates only opacity and transform so it stays smooth, and never blocks input.
| Token | Value | Use for |
|---|---|---|
| --dur-1 | 120ms | Hover, press, small feedback |
| --dur-2 | 200ms | State changes, theme crossfade, toggles |
| --dur-3 | 320ms | Page and panel entrances, chart values |
| --ease-out | cubic-bezier(.2, .8, .2, 1) | Things arriving: fast start, soft landing |
| --ease-std | cubic-bezier(.4, 0, .2, 1) | Color and opacity changes |
Target: WCAG 2.2 AA in both themes. These are rules the components follow, not a checklist added at the end.
All text pairs reach at least 4.5:1 and control borders 3:1, measured per theme. Ratios are listed next to every token in Foundations.
Confidence uses bars plus a word, deal health uses a dot plus a label, changes use strike-through and highlight.
Every control is a real button, link or input. A clear focus ring appears on keyboard focus, and a Skip to content link comes first on each screen.
Approve, reject, undo and theme changes are announced through a polite live region, so screen reader users hear the result.
Landmarks (nav, main, aside), one h1 per screen, captioned tables, description lists for record details, aria-current on the active page.
Agent content is named "Agent" in text, not only colored violet. Buttons repeat the action and record, for example "Approve: Send revised proposal email, Northwind Labs".
Action buttons are 32px on desktop and 40px on touch layouts, one size per breakpoint. Inline chips never go under 24px, the WCAG 2.2 minimum.
With the OS setting on, all animation and transitions become near-instant and the live pulse stops. Nothing depends on motion to make sense.
--focus outline, 2px offset. Ink ring: 18.3:1 on light, 15.7:1 on dark surfaces.