v0.1 · draft

One set of tokens, two schemes, any site.

DTCG tokens built to CSS light-dark(), base styles in @layer jrl.* so any site can override them, and Lit web components for the parts that need behaviour. Everything below renders from the published package.

Colour roles

Each role in light and dark, side by side. Components only use roles, never the palette.

Light

Dark

Contrast

WCAG 2.1 AA for every semantic pair, checked at build time by scripts/check-contrast.mjs. Text needs 4.5:1, borders and focus rings 3:1.

PairLightDarkNeeds

Type

Fraunces display

IBM Plex Sans for reading, at a comfortable measure.

MONACO · CATALOG RAIL · 0123456789

Buttons, badges, cards

Plain CSS classes on native elements. No JavaScript needed.

Coral Teal Yellow

A card

Outlined surface, square corners and the hard offset shadow. In dark mode the shadow turns coral.

Web components

Shadow DOM, themed entirely by inherited tokens. Ported from plotter-art's pa-panel.

Auto / light / dark. Stored in localStorage and applied before paint by an inline snippet.

Open decisions