Skip to main content

tokens

Tokens

Every design token the site declares, rendered from the theme files that declare it, with where each group comes from and how to change it.

Tokens are the named values every component draws on: colour, type, spacing, and motion. Each one is a Tailwind theme variable, so you use it as an ordinary utility (bg-primary-500, p-4, text-2xl, duration-fast), never as a raw value.

These pages read the theme files at build time, so they always show what the CSS declares.

Where each group comes from

GroupSource of truthWritten toTo change it
ColourColor variables in the Figma librarystyles/colors.cssEdit in Figma, then npm run build:design
Spacing and containersSpacing and Size variablesstyles/tokens.cssEdit in Figma, then npm run build:design
Radius and shadowSize variables and Shadow effect stylesstyles/tokens.cssEdit in Figma, then npm run build:design
Typography: size, weight, leading, trackingTypography variablesstyles/tokens.cssEdit in Figma, then npm run build:design
Typography: familiesCodestyles/typography/fontFamilies.cssEdit by hand; the fonts are self-hosted
Motionjs/choreography/tokens/motion/motion.jsstyles/motion.cssEdit the JS, then npm run build:motion

Never edit colors.css, tokens.css, or motion.css by hand: the next sync overwrites them. The decision record is specs/decisions/adr-0001-figma-owns-design-tokens.md.

The current colour file was generated from Figma file data:ink:io, version 2419581844071266638.

Using tokens in a template