Design Tokens
ELI5 — The Vibe Check
Design tokens are the single source of truth for your design decisions — colors, spacing, fonts — stored as variables that work everywhere. It's like having one recipe book that every chef in every restaurant follows, so the dish tastes the same no matter who cooks it.
Real Talk
Design tokens are platform-agnostic key-value pairs representing design decisions (colors, typography, spacing, shadows). They bridge design tools and code, enabling consistent multi-platform theming. Tools like Style Dictionary transform tokens into CSS variables, iOS constants, or Android resources.
Show Me The Code
// tokens.json
{
"color": {
"primary": { "value": "#2563eb" },
"spacing": { "md": { "value": "16px" } }
}
}
When You'll Hear This
"The design tokens are the source of truth — don't hardcode colors" / "When the brand colors change, we update the tokens and everything cascades"
Related Terms
Color Functions
CSS color functions let you mix, lighten, darken, and adjust colors right in your stylesheet.
Figma to Code
Figma to Code is the dream of turning designer mockups into actual working code automatically.
oklch
oklch is a color format that actually makes sense to human brains.