Design Token
Synonyms: design token, design variable, style token, semantic token, theme variable
Definition
Use cases
- The rebrand from hell. Marketing changes the brand blue, and a team without tokens hunts through hundreds of files. With a token, you edit color-brand-primary once and it cascades everywhere.
- Dark mode bolted on too late. A team that jumped from raw values straight to components can't theme cleanly.
- Design and code disagree on blue. A designer tweaks a color in Figma, devs never hear about it, and the app drifts. Tokens synced from Figma to code keep one source of truth.
How it's used in practice
- Structure in three tiers: global/primitive (
blue-500: #3B82F6) → semantic (color-action: blue-500) → component (button-bg: color-action). Components reference the semantic layer, never raw values.
- Name by purpose, not appearance:
color-error, notcolor-red. A red error today might be orange tomorrow, and the name should survive that.
- Store platform-agnostic, then transform: keep tokens in JSON and run a tool to output CSS, Swift, and Android from one source.
- Document the convention before scaling: write the naming pattern (
{category}-{property}-{variant}-{state}) down so nobody invents duplicates.
Challenges & limitations
- Naming is the hardest part, and teams underestimate it. "Global," "semantic," "primitive," and "alias" overlap and confuse people, and a vague convention breeds duplicates fast.
- Tooling is still fragmented. The DTCG format is stabilizing, but token sync between Figma, code, and build tools breaks in annoying ways, and round-tripping changes is rarely clean.
- Over-tokenizing buries you. Make a token for everything and you get a sprawling list nobody understands. A value earns a token when it's shared (rule of thumb: three or more uses), not by default.
Free resources
- Smashing: What Are Design Tokens? — Jina Anne, who coined the term, explaining the concept and history.
- Material Design 3: Design tokens — Google's token system for color, type, shape, and how to apply it.
- Satellytes: Crafting a Design Token System — a practical remix of naming and structure advice with examples.

