Design Token Naming: Building a Taxonomy

Design Token Naming: Building a Taxonomy

The name is the contract: a rename that removes the old name breaks every reference still using it, while a value change is cheap. The ordered-level anatomy of a token name, the role-not-value rule, and the naming failures that spread across a whole system.

In a token system the name is the contract — every component, stylesheet, and platform output references a token by name, so a rename that removes the old name breaks every reference still using it, while a value change is cheap. Good token names describe a role, not a value, follow a fixed order of levels (namespace, category, concept, property, variant, state), and draw each level from a small closed vocabulary. This guide gives you the anatomy of a token name and the naming failures that spread across a whole system.

Why the name is the contract

A token's value is the easy part to change. Swap a hex, retune a spacing step, supply a different number for a dark theme — one definition updates and everything referencing it follows. The name is the hard part, because it is what everything references in the first place.

That asymmetry is the whole reason naming deserves deliberate work. When you rename color.brand to color.action.primary, you have not made a small edit — you have changed an identifier that components, themes, and every platform output point at. Until each of those references is updated, they point at a name that no longer exists. A value change ripples cleanly; a name change ripples as breakage until every reference is migrated.

There is also a plainer reason to care: a token name is written once but read every time someone scans a token list, picks from autocomplete, or reviews a diff. Optimize the name for the person scanning, not for the person who coined it. A name that is precise but unscannable still costs the team every day.

The anatomy of a token name

A durable token name is not a single label. It is an ordered sequence of levels, from most stable on the left to most specific on the right:

LevelAnswersExample fragment
NamespaceWhose system is this?`sys`
CategoryWhat kind of thing?`color`
ConceptWhat role or group?`action`
PropertyWhich aspect?`background`
VariantWhich variation?`primary`
StateWhich interaction state?`hover`

Read left to right, sys.color.action.background.primary.hover decomposes cleanly into those levels. Not every token needs every level — some stop at concept or variant — but the order is not optional. When every name uses the same order, names sort together, autocomplete groups them, and a reader can predict where a level will appear. Inconsistent order is what turns a token list into noise.

The most-stable-first ordering is deliberate: it treats categories as the most stable level and states as the most volatile one. Putting the stable levels on the left means related tokens cluster together alphabetically, and the volatile detail lives where it does the least damage to scanning.

Describe the role, not the value

Here is a rule that separates a name that survives a rebrand from one that does not: name the role, not the value.

text
color.blue.500        ← names the value
color.action.primary  ← names the role

color.blue.500 is a fine name for a primitive — a raw palette entry is allowed to describe its own value, because that is all it is. But the moment a token expresses intent, naming the value is a trap. If color.blue.500 is used as the primary action color and the brand later moves to green, every reference now reads blue while rendering green. The name lies, and it lies everywhere it is used.

color.action.primary does not have that problem, because nothing about the name commits to a hue. The value beneath it can become any color and the name stays true. Which tier is allowed to name values and which must name intent is the tier model's concern, covered in the article on token tiers; the naming rule that follows from it is simple and testable:

If the value changed, would the name still be true? If yes, the name describes a role. If no, the name has leaked the value, and you should expect it to lie the first time that value moves.

Patterns that keep a taxonomy consistent

A naming convention is not just a format; it is a vocabulary. Three practices keep that vocabulary from fragmenting.

First, draw each level from a small closed set, not free text. The categories are a fixed list (color, space, font, size, radius, shadow). The concepts within a category are a fixed list too (surface, text, action, border, danger). When concepts are free text, you get cta, primary-action, and action all meaning the same thing, authored by three different people. A closed vocabulary makes the right name the obvious name.

Second, choose case and separator once and enforce them. The names here separate levels with a dot and would write a multi-word level in kebab-case; a source in that form can be transformed into platform-specific conventions (kebab-case for CSS custom properties, camelCase for Swift, snake_case for Android XML resources), and the build handles that conversion. What matters is not which convention you pick but that the source uses exactly one.

Third, name in sets, not one-offs. If you introduce surface.default, decide at the same time whether you also need surface.raised and surface.sunken. Naming the whole set at once keeps the concept coherent; adding members one at a time, on demand, is how a taxonomy drifts into a pile of unrelated names that happen to share a prefix.

Naming failures and how they spread

The failures worth guarding against all share a trait: they do not stay local. A bad name propagates to every place the token is referenced.

Value in the name. gray.100 used as a background role is one example. The day a non-gray theme arrives, every gray.100 background is a name describing a color it no longer is. The fix is not renaming after the fact — it is naming the role (surface.subtle) from the start.

Synonym drift. bg, background, and surface for the same concept means three names for one decision. A consumer cannot tell whether they are different on purpose. Synonyms are not redundancy; they are ambiguity, multiplied across the system.

Over-specific primitives. A raw palette value named button-blue locks a primitive to one use. Primitives should be usable by any role; baking a component into a primitive's name prevents reuse and tempts a fork the next time a different part needs that same value.

An honest closing note: some renames are unavoidable. A concept genuinely changes, a taxonomy that was right for a small token set strains as the set grows, and occasionally the cleanest path is to rename and migrate. That is exactly why versioning and deprecation exist as their own discipline — not covered here, but the reason naming and change management are two halves of the same commitment. Good naming makes renames rare; it does not make them impossible.

Project Inquiry