A design token is a name with a value attached. Instead of typing #E92A24 into fifty places, you define a token called primary once and use the name everywhere. Change the token and every button, link and banner that uses it updates at the same time.
Tokens sound technical, but the idea is the same as writing your brand colors on a sticky note next to the screen. The difference is that code and design tools can read them, so nobody has to copy values by hand.
How do design tokens work?
A token has three parts: a name, a value and, usually, a type. They tend to come in two layers.
- Base tokens hold the raw values: red-600 is #E92A24, space-4 is 16px.
- Semantic tokens describe a role and point at a base token: color-primary uses red-600, color-text uses ink. Components only ever use semantic names.
- Output formats turn the same list into whatever each tool needs: CSS variables for a website, a theme for Tailwind CSS, values for iOS and Android apps, or variables in Figma.
There is now a shared file format for this. The W3C Design Tokens Community Group published its first stable specification, version 2025.10, in October 2025, so tools can exchange tokens without custom converters.
What goes into a set of tokens?
- Color: primary, background, text, muted, borders, success and error states.
- Typography: font families, sizes, weights and line heights.
- Spacing: a fixed scale such as 4, 8, 16, 24 and 32 pixels.
- Shape and depth: corner radius, border widths and shadows.
- Motion: animation durations and easing curves.
Why design tokens matter
- One source of truth. The brand lives in one file instead of being scattered across stylesheets, slides and design files.
- Cheap changes. A rebrand or a dark mode becomes an edit to a list of values, not a hunt through every page.
- AI agents follow them. A short, explicit list of names and values is much harder for an AI coding agent to ignore than a vague note about being "warm and modern". This is the main fix we describe in why AI-built websites look the same.
Design tokens vs a color palette
A color palette is the set of colors a brand owns. Tokens give those colors jobs. The palette says you have a red, a cream and a near-black. The tokens say the red is for buttons and links, the cream is the page background and the near-black is for text. That second step is what keeps a site from using the accent color everywhere.
How to create design tokens
- Start from your brand kit: write down the exact values of every color and font you already use.
- Give each value a role-based name (primary, ink, paper, muted) instead of a descriptive one (red, dark grey).
- Add a spacing scale and one or two corner radius values.
- Store them where your code reads them, for example a CSS file with variables, and delete the hard-coded values they replace.
- Point your designers and AI tools at that one file.
If you do not have the values yet, the Monstric brand studio produces a palette, fonts and a brand kit you can turn straight into tokens, and our guide on giving Claude Code a brand shows the exact token file we use.
Common mistakes
- Naming tokens after their value. A token called blue breaks the day the brand turns green. Name the job, not the color.
- Keeping the defaults around. If a framework's full default palette still exists next to your tokens, people and AI tools will keep reaching for it.
- Too many tokens. Three hundred tokens for a five-page site is a maintenance job, not a system. Start small.
