
Design Tokens: A Practitioner's Guide
A design token is a named design decision held apart from any platform. The tiered architecture, the build pipeline, what you gain, what you take on, and what tokens do not solve.
TL;DR: A design token is a named design decision stored apart from any platform — a name paired with a value. The name is the contract every part of your product references; the value can change per theme or platform without the name moving. Tokens are organized in tiers (raw primitives, semantic roles, component scopes) and compiled by a build into CSS, iOS, and Android outputs. You gain one source of truth and theming-as-a-value-swap; you take on a build step, naming discipline, and a layer of indirection. This guide is the model and the decision frame — each implementation area is its own problem, with its own depth.
What a design token actually is
Start with the thing itself, because the word gets used loosely. A design token is a named design decision held independent of any platform. Concretely, it is a name and a value: a name like color.action.primary and a value like #1b6ef3. That is the whole atom.
What it is not is the form it eventually takes. A CSS custom property is one thing a token compiles into on the web; a style in a design tool is one place a token is authored. Neither is the token. The token is the decision, recorded once in a form that does not assume CSS or Swift or Kotlin, so that the same decision can become any of them.
The reason this distinction matters is which part is durable. The value is cheap — a color shifts in a rebrand, a spacing step gets retuned, a dark theme supplies a different number entirely. The name is expensive, because every component, every stylesheet, every platform output references the token by name. Change a value and one place updates and everything downstream follows. Change a name and you have broken every reference at once. So a token system is, more than anything, a set of names you are committing to, with values hanging off them that you are free to revise.
That reframing is the point of the whole practice. Before tokens, design decisions live as hardcoded values scattered across stylesheets and screens — say, the same blue typed forty times, slightly wrong in six of them. Tokens move those decisions into one named, queryable source. The work shifts from hunting down values to maintaining a vocabulary.
The tiered architecture at a glance
Tokens are not a flat list. A workable system has tiers, and the tiers are what make the rest of the model behave.
There are three, named here once and given depth in the article on token tiers:
- Primitive (also called option) tokens hold raw values — the full palette, the spacing scale, the type ramp. They carry no opinion about use.
color.blue.500is a primitive; it does not know whether it is a link or a brand accent. - Semantic tokens name intent and reference a primitive.
color.action.primaryis semantic; it means "the color of the main action" and points at whichever primitive currently fills that role. - Component tokens scope a decision to one part and reference a semantic.
button.backgroundis a component token; it points atcolor.action.primaryso a button never names a raw value directly.
The count is not the lesson. The reference chain is: a component token points at a semantic token, which points at a primitive. That chain is precisely what turns a theme into a value swap — remap the semantic layer and everything above it follows without being touched. When to add a tier, and when a third tier is over-engineering, is its own decision, covered in the article on token tiers.
The pipeline at a glance
A token source is not what the browser reads. It is a structured file that a build turns into platform-specific outputs.
tokens.json (one source of truth)
│ parse → resolve references → transform per platform → format
▼
├──▶ variables.css (CSS custom properties)
├──▶ Tokens.swift (iOS)
├──▶ tokens.xml (Android)
└──▶ tokens.json (a normalized output for other consumers)Read that as a shape, not a configuration, and read the order of the steps as a conceptual model that not every tool follows. A single source describes the decisions; a build resolves the references between tiers, transforms each value into what the target platform expects (a hex becomes a UIColor, a pixel becomes a dp), and writes one file per output. The same color.action.primary lands as a CSS variable on the web and a color resource on Android, from one definition.
The source can speak a shared format rather than a tool-specific one. The Design Tokens Community Group (DTCG) format is a community-group specification for exactly this — a vendor-neutral way to express tokens, their types, and the references between them; it is not a W3C Standard. Its first stable version, 2025.10, was published in October 2025 (see the Design Tokens Format Module 2025.10, as of November 2026); the group continues to revise it in an editors' draft, so check the current version rather than trusting a fixed shape. A shared, vendor-neutral source format is what lets the source outlive any single build tool.
One minimal illustrative token, again as shape:
{
"color": {
"blue": {
"500": {
"$type": "color",
"$value": { "colorSpace": "srgb", "components": [0.106, 0.431, 0.953], "hex": "#1b6ef3" }
}
},
"action": { "primary": { "$type": "color", "$value": "{color.blue.500}" } }
}
}The semantic action.primary references the primitive blue.500 rather than restating the color value. That reference is the system working.
What you gain
The first gain is one source of truth. A color or spacing decision changes in one place and propagates everywhere it is referenced, across every platform the build emits. The "same blue, slightly wrong in six places" problem goes away for every value that references the token, because there is one place the blue is defined.
The second gain is theming as a value remap. Because components consume semantic tokens and semantics reference primitives, a theme is an alternate set of semantic values over the same structure. Light and dark are not two stylesheets maintained in parallel; they are two value sets for one set of names. The component asking for color.surface.default never knows which theme is active. The depth of how a theme is built and applied is covered in the article on theming, but the reason it is cheap lives here in the tier chain.
The third gain is cross-platform consistency. The same named decision renders on web, iOS, and Android because all three are generated from one source. Drift between platforms becomes a build difference you can see, not a discrepancy someone notices in production.
What you give up and take on
None of this is free, and the honest accounting matters.
You now run a build. The token source is no longer the thing the browser reads — there is a compile step between editing a value and seeing it render. That is a pipeline to operate, with the same realities any build has: it runs in CI, it can break, and the outputs are a versioned dependency other people rely on.
You own naming and tier discipline. A token system is only as good as its taxonomy, and a sloppy one spreads everywhere a token is referenced. A name that leaks its value, two names for the same concept, a primitive locked to one use — each of these propagates rather than staying local. The system makes good decisions cheap to reuse and bad ones cheap to repeat.
And you accept indirection. Tracing a rendered value back through a component token to a semantic to a primitive is more hops than reading a hardcoded hex. That indirection buys you theming and consistency, but it is real: a value on screen is now the end of a chain, and following the chain is a skill the team has to build.
How the work decomposes across this topic
Treat this guide as the map and each area below as a separate implementation problem.
The two foundations are naming architecture — how to structure token names so the taxonomy holds up as the set grows — and the tier model, which defines what primitive, semantic, and component tokens are for and how the references chain. Get those wrong and nothing downstream is reliable.
On top of those sit the areas that make a token system actually work in production: the build pipeline that turns one source into many outputs; how tokens land as CSS custom properties at runtime; how theming is built as alternate semantic value sets; when a component earns its own scoped tokens; how design-tool variables and code tokens stay in sync; how the set is versioned and deprecated without breaking consumers; how one source serves several brands; and the specific token families — spacing and sizing, typography, and color with contrast built in.
Each of those is its own decision with its own depth. This guide gives you the model and the frame for making them; it deliberately does not try to be the depth.
What design tokens do not solve
Three honest limits, because the practice is easy to oversell.
Tokens do not make an inconsistent design consistent. They encode whatever decisions you feed them. A token system built on top of forty arbitrary blues will faithfully reproduce forty arbitrary blues, now with names. The consistency comes from the design decisions; tokens only make those decisions reusable. Garbage in is still garbage out, distributed more efficiently.
Tokens do not remove naming as the hard problem. They relocate it. Instead of ad hoc values, you now maintain a taxonomy, and the taxonomy is where the difficulty moves. A team that struggled to keep its values consistent will struggle to keep its names consistent until it treats naming as the deliberate work it is.
And tokens are not a design system on their own. They are the value layer beneath the components and the guidelines — the decisions, not the things built from them. A token set with no components consuming it, or no agreement on what the semantic roles mean, is a dictionary nobody reads. Tokens are infrastructure for a design system; they are not the system.
One note on the ground shifting underneath the format itself: the DTCG specification reached a stable 2025.10 version in October 2025 and is still being revised in an editors' draft (as of November 2026; see the Design Tokens Format Module 2025.10 and the Design Tokens Community Group for current status). Build for the direction of travel — a vendor-neutral source describing named decisions in tiers — rather than for any one version of the spec frozen on a single date.