3 · Colors

Categorical hues

Eight named hues for identity — a module, a subject, a chart series, a person. Each has five roles: --hue-teal (solid fill), -on (ink on it), -text, -surface (tint) and -border. Set data-hue="teal" on any element and its accent roles follow — buttons, links, focus rings, chart series 1 — and --hue, --hue-text, --hue-surface… name the active hue. Components take a hue prop: Card, TileCard, Avatar (hue="auto" picks from the name), Badge, Tag, PageHeader, Sidebar, BarList and chart series.

Light

Pair (worst of 8 hues)RatioMin

Dark

Pair (worst of 8 hues)RatioMin

Ratios are read from rendered pixels — each colour is painted to a canvas inside its theme, since getComputedStyle hands oklch() back unconverted. Text clears 4.5:1 on the card, the page and its own tint; ink clears 4.5:1 on the solid; the solid clears 3:1 against card and page, so it works as a chart mark. In light the solids are deep (white ink); in dark they lift and take dark ink. Hues are identity, not status: pair them with a label, and keep positive / notice / negative for meaning.