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
| Group | Source of truth | Written to | To change it |
|---|---|---|---|
| Colour | Color variables in the Figma library | styles/colors.css | Edit in Figma, then npm run build:design |
| Spacing and containers | Spacing and Size variables | styles/tokens.css | Edit in Figma, then npm run build:design |
| Radius and shadow | Size variables and Shadow effect styles | styles/tokens.css | Edit in Figma, then npm run build:design |
| Typography: size, weight, leading, tracking | Typography variables | styles/tokens.css | Edit in Figma, then npm run build:design |
| Typography: families | Code | styles/typography/fontFamilies.css | Edit by hand; the fonts are self-hosted |
| Motion | js/choreography/tokens/motion/motion.js | styles/motion.css | Edit 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
- Reach for the token utility before an arbitrary value.
p-4is a token;p-[17px]bypasses the system. - Use only the palette families on the colour page. Tailwind's default families (
blue,red,green,yellow,gray) were dropped on 2026-11-06. They still compile, because nothing resets Tailwind's default theme, so keeping them out is up to you until the planned lint rule lands. - For invalid states, use
semantic-fail. On paper, check the contrast figures first:semantic-fail(4.1:1) andsemantic-success(3.8:1) fall short of 4.5:1 there, which is why the contact form's status text usestertiary-600andsecondary-700. - Project utilities built on these tokens (gels, inner borders, registration marks, masks) are in the Decoration section.