Internal / unlisted
Design System
The typography, colour, spacing, and component tokens this site is built from, pulled from globals.css and rendered live so this page always reflects the current theme.
Colour
Toggle the theme switcher in the nav to see every swatch below update, except the “theme-invariant” group, which is fixed on purpose.
Surface & text
--bgpage background
--bg-altsecondary background
--surfacecard background
--surface-subtlefaint card fill
--textbody text
--text-secondarymuted text
--borderhairline borders
Brand
--accentprimary background/border
--accent-textaccent as text/icon colour
--accent-vividaccent-text, boosted for legibility
--on-accenttext/icons drawn on --accent
Semantic
--successsuccess background/border
--success-textsuccess as text
--dangerdanger background/border
--danger-textdanger as text
Code blocks
--code-bginline & block code fill
--code-bordercode block border
--code-textinline code text
Nav (theme-invariant)
--nav-fixed-bgalways dark teal
--nav-fixed-textalways cream
--nav-fixed-accentalways gold
--nav-fixed-toggle-bgtheme-toggle chip
Typography
--font-display: Space Grotesk
Aa Bb Cc 123
--font-body: Inter
Aa Bb Cc 123
--font-mono: SF Mono
Aa Bb Cc 123
--text-badge · Badge and pill labelsFEATURED
--text-caption · Mono hints under a demohover the star
--text-label · Form labels, chips, code tagsanchor-name
--text-meta · Secondary UI textEverywhere
--text-ui · Nav links, buttons, filtersAll demos
--text-body-sm · Card descriptionsA component that reflows to its container.
--text-body · Body copy inside componentsEvery demo runs on plain CSS.
--text-body-lg · Roomier body copyEvery demo runs on plain CSS.
--text-base · Primary buttons, full-size bodyGet in touch
--text-lead · Page introsNew CSS, explained by playing with it.
--text-title-sm · Card and panel titlesNative CSS Scoping
--text-title-md · Explainer headingsHow it works
--text-title · Section titlesDesign System
--text-display · Page h1 (clamps with the viewport)New CSS features
Spacing
Common increments used across padding, gaps, and margins site-wide.
0.25rem0.5rem0.75rem1rem1.5rem2rem3rem4rem6remButtons & radii
3px4px6px8pxCode block
Shiki, dual-themed via github-light-high-contrast / github-dark-high-contrast.
.btn-primary {
background: var(--accent);
color: var(--on-accent);
border-radius: 4px;
}turns, wins and reset, all CSS
trigonometry, in CSS
switch guests on