
Primitive, Semantic, Component: Token Tiers
Primitive holds raw values, semantic names intent, component scopes a decision — and the reference chain between them is what makes a theme a value swap. When to add a tier, when a third is over-engineering, and how to keep the chain honest.
TL;DR: A token system works in tiers. Primitive tokens hold raw values, semantic tokens name intent and reference a primitive, and component tokens scope a decision to one part and reference a semantic. The point is not the count of tiers but the reference chain — component points at semantic points at primitive — because that chain is what makes a theme a value swap instead of a rewrite. Start with two tiers and add component tokens only when a part must vary on its own. This guide covers what each tier is for, when to add one, and how to keep the chain honest.
Three jobs, three tiers
Each tier exists to do a different job. Conflate them and the system stops paying off.
Primitive (or option) tokens hold raw values with no opinion about use. They are the palette ramps, the spacing scale, the type sizes — color.blue.500, space.4, font.size.300. A primitive describes what it is, not where it goes. Its only job is to be the single definition of a raw value.
Semantic tokens name intent and reference a primitive. color.surface.default, color.action.primary, color.text.danger — each names a role and points at whichever primitive currently fills it. A semantic token is where meaning lives: it says "this is the main action color" without committing to a hue.
Component tokens scope a decision to a single part and reference a semantic. button.background, card.border, input.text — each belongs to one component and points at a semantic role. A component token is the part's published contract: the specific decisions a consumer can rely on.
The number of tiers is not the lesson. The reference chain is: a component token points at a semantic token, which points at a primitive. Three layers, each referencing the one below, never skipping.
Why the indirection earns its keep
That chain looks like extra hops until you change something, and then it is the whole payoff.
A theme remaps the semantic tier. Light and dark are two value sets for the same semantic names; the primitives barely move and the components do not move at all. When color.surface.default resolves to a near-white in the light theme and a near-black in the dark theme, every component asking for that role follows automatically. The article on theming covers the mechanics of building a theme, but the reason theming is cheap lives right here in the chain.
Components consume semantics, never raw values. A button asks for color.action.primary, not #1b6ef3 and not color.blue.500. That discipline is what lets a theme change, or the value changes in a rebrand, happen without editing the components themselves. A component that hardcodes a hex, or even reaches straight to a primitive, has cut itself out of the chain and will not follow a theme.
Here is one chain resolving a single decision down to a raw value, shown as shape:
button.background (component)
└─▶ color.action.primary (semantic)
└─▶ color.blue.500 (primitive)
└─▶ #1b6ef3 (raw value)Change the theme and color.action.primary points at a different primitive; the button updates without knowing why. That is the system working.
When to add a tier — and when not to
More tiers is not better. Each tier is another name to maintain and another hop to trace, so add one only when it does a job the others cannot.
Start with two tiers: primitives and semantics. For many systems that is the whole design — components consume semantic roles directly and never need their own tokens. Two tiers give you theming and a single source of truth with the least overhead.
Add component tokens when a part must vary independently of its semantic role. The signals are concrete: a component that has to theme differently from the role it normally uses, or product teams who keep overriding the same component property instance by instance. When the same override appears again and again, that override wants to be a named component token.
The counter-signal matters just as much. A component token that only ever aliases one semantic, adding no new meaning, is noise. button.background that always equals color.action.primary and never diverges is a name you now maintain for nothing. If a component token cannot answer "what does this let vary that the semantic did not," it should not exist.
And the honest cost runs through all of it: every tier you add is one more hop to trace from a rendered value back to its source, and one more layer of names to keep consistent. The indirection buys theming and override safety; it is not free, and a third tier added reflexively costs more than it returns.
Keeping the chain honest
The chain only works if references follow the layering. Two rules keep it from degrading into a tangle.
A component token should not reach past semantic to a primitive. button.background pointing straight at color.blue.500 skips the semantic tier, and the moment a theme remaps the role, the button does not follow — it is still wired to a raw value. Skipping the middle tier quietly defeats the entire reason the tiers exist.
A semantic token should reference a primitive, not another semantic. When semantics alias other semantics, the chain stops being a clean three layers and becomes a graph — action.primary points at brand.base points at accent.strong points at a primitive, and predicting what a change will move means tracing every hop. One semantic, one primitive, keeps the resolution legible.
Both of these are the kind of error a build should catch. Unresolved references, circular aliases, and a value that never reaches a primitive are exactly what the build's validation step is for — the article on the build pipeline covers how that resolution and checking work. The rule to hold here is the simpler one: every token resolves down the tiers, in order, to a raw value, and anything that does not is a bug waiting for the first theme to expose it.