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
FEATURED
OHYESCSS
All demos
A small collection of interactive demos.
Native CSS Scoping
Design System
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;
}