Design tokens
Token explorer
Select any token to follow its chain: primitive → semantic → component → the parts of the website that use it. The data is generated from the same JSON files the CSS is compiled from.
Dependency explorer
Highlighted tokens are upstream (what the selection references) or downstream (what depends on it). Try prim.color.lavender.400, then edit it: the buttons and card below recolour because they resolve through color.accent.fill and button.primary.bg.
Primitive · 125
Semantic · 112
Component · 83
Product · 5
- Button
- Navigation
- Hero plates and System Anatomy planes
- Annotations, underlines and links
- Depth gauge
prim.color.lavender.400
- Tier
- Primitive · color
- CSS variable
- Current value
- live, resolved in this page
- Dark mapping
#B9A6FF→ #B9A6FF- Light mapping
#B9A6FF→ #B9A6FF- References
- None (raw value)
- Dependents
- Variant overrides
- accent: lavender → color.accent.fill
Edit this token live session only
#B9A6FFEdits override the CSS variable on this page only. They are not saved, exported or applied to other pages. Colour edits can lower contrast; the build-time contrast checks cover the shipped values, not your edit.
Card
Reads component tokens
Edit a primitive above and watch this update.
Dependent previews
The real Button and Card components, rendered from the shared models. They read component tokens, which resolve through semantic tokens to the primitive you edit.
Token naming conventions
Names say what a token is for, never what it looks like, except at the primitive tier where the value is the point.
Primitive prim.<group>.<name>.<step> prim.color.lavender.400 → --ds-prim-color-lavender-400
Semantic <category>.<role>[.<state>] color.accent.fill → --ds-color-accent-fill
Component <component>.<part>.<property> button.primary.bg → --ds-button-primary-bg
Variant <attribute>.<value>.<token path> accent.ember.color.accent.fill
→ :root[data-accent="ember"] { --ds-color-accent-fill: … }- Tier is in the name. Only primitives start with
prim., so a reviewer can see at a glance whether a component reads a raw value. - Roles over appearance.
color.bg.layer, notcolor.dark-grey: the value changes per theme, the role does not. - CSS variables are the path. Dots become hyphens under a
--ds-prefix, so any token can be located by search.
Aliases and theme mappings
Light and dark are two files defining the same roles. The compiler fails the build if their role sets differ, so a theme switch can never drop a value.
// semantic.dark.tokens.json
"color": { "accent": { "text": { "$value": "{color.accent.fill}" } } }
// semantic.light.tokens.json — same role, different alias
"color": { "accent": { "text": { "$value": "{color.text.primary}" } } }
// compiled
--ds-color-accent-text: var(--ds-color-accent-fill); /* dark */
--ds-color-accent-text: var(--ds-color-text-primary); /* light */Component tokens are computed where they are declared. A section that swaps roles locally (the accent-filled Studio section) therefore needs its component tokens re-declared in its own scope; the compiler generates that scope. This was a real defect found during testing and is recorded in the decision log.