Design system
One set of tokens.
Every page and every case study reads the same variables from one file, tokens.css. Light, dark and high contrast are the same tokens with different values, so a component never needs its own theme.
Colour
- Paper
--paperpage background - Soft
--softtinted sections - Line
--linehairlines and borders - Muted
--mutedsecondary text - Ink
--inktext and primary buttons - Accent
--accentlinks and emphasis - Mark
--markhighlight
Type
Display and headings, Newsreader
Body and interface, Instrument Sans. Readable at every size, with generous line height.
LABELS AND DATA, JETBRAINS MONO
Spacing and radius
--s-1--s-2--s-3--s-4--s-5--s-6--s-7--s-8
--r-1--r-2--r-3--r-4--r-pill
Buttons and chips
Accordion
What is this for?
Short questions with their answers, always visible, so nobody has to open anything.
Is it keyboard friendly?
Yes. There is nothing to open, so there is nothing to miss.
Slider
Arrows, mouse drag, touch swipe and keys all work, and the track nudges once to show there is more.