A card
Outlined surface, square corners and the hard offset shadow. In dark mode the shadow turns coral.
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.
Each role in light and dark, side by side. Components only use roles, never the palette.
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.
| Pair | Light | Dark | Needs |
|---|
Fraunces display
IBM Plex Sans for reading, at a comfortable measure.
MONACO · CATALOG RAIL · 0123456789
Plain CSS classes on native elements. No JavaScript needed.
Outlined surface, square corners and the hard offset shadow. In dark mode the shadow turns coral.
Links use accent-text, a darker coral that passes AA on the page.
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.
--jrl-radius-ui is square (the current default theme); the old Astro primitives used 8px.