Token Naming Conventions for Product Teams

Token Naming Conventions for Product Teams
Token Naming Conventions for Product Teams

Last updated: November 19, 2026

Key Takeaways

  • Stop token sprawl early with a naming rule that keeps names readable and scalable.
  • Build names in layers so each part answers one clear question.
  • Separate source names from usage names to keep design and code aligned.
  • Use one naming logic across color, spacing, and typography, with category-specific detail.

Token naming conventions for product teams are the rules that keep design tokens readable, searchable, and safe to scale across design and code. A good token naming convention gives every token one clear job, one clear place in the taxonomy, and one predictable path from design intent to platform output.

What a token naming convention has to do

A token naming convention has to stop token sprawl before it starts. If a team ships 20 color tokens for one button state, or names spacing values space-1, space-2, space-3 with no meaning attached, the system turns into a pile of guesses that nobody trusts.

The practical goal is not to make names clever. It is to make them durable across at least 3 layers: source tokens, semantic tokens, and platform tokens. That separation matters because a product team will usually need one naming pattern for design tools, another for code, and a third for output formats like CSS custom properties or native platform variables.

A strong convention usually solves 5 problems at once:

  • It tells people what the token represents.
  • It shows where the token belongs in the taxonomy.
  • It keeps state names predictable, such as hover, pressed, disabled, and focus.
  • It makes legacy migration possible without renaming everything in one release.
  • It reduces duplicate names that differ only by platform or team preference.

The convention should work for color tokens, spacing tokens, typography tokens, component tokens, and platform tokens. If a name cannot survive all five categories, it is too narrow for a product team that expects the system to scale.

A generic article often misses the hardest part: naming is governance, not just syntax. A clean naming scheme can still fail if 4 teams invent their own prefixes, or if a design file and a codebase use different meanings for the same word. That is why the convention has to be written down, reviewed, and treated like part of the product standard, not a style preference; teams should also consult a design systems professional or token governance specialist when the taxonomy must work across multiple tools or platforms.

How should a token naming convention be structured?

A token naming convention should use a layered path, with each part of the name answering a different question. A practical pattern is: category → intent → variant → state → platform, with only the pieces you need for a given token.

That pattern is easier to govern than a flat string of words. It lets a team keep descriptive source names in one place and semantic names in another, instead of mixing raw values and usage intent. A token like color.text.primary says more than blue-500, and it survives a palette change without forcing a rename in every component.

One workable structure looks like this:

  • Category: color, spacing, typography, radius, shadow, motion.
  • Intent: text, surface, border, icon, background, gap, body, heading.
  • Variant: primary, secondary, inverse, muted, critical, success.
  • State: default, hover, pressed, disabled, focus.
  • Platform: web, ios, android, figma, or a format-specific suffix when needed.

The point is not to include every field in every token. A spacing token may only need category and scale, while a stateful component token may need all five. For example, spacing.200 is simple because spacing usually has no semantic state, while color.button.primary.hover is more specific because button color depends on interaction.

This is where teams get into trouble: they name the token by implementation instead of meaning. hex-00A3FF is easy to generate and hard to govern. blue-600 is better, but still too tied to the palette if that blue later becomes teal in a rebrand. color.link.default is slower to write and much cheaper to maintain.

The structural rule that helps most teams is this: names should describe the role, not the value. That one decision can prevent a large share of future renames, though teams should still review the rule with a design systems professional before rolling it out across shared libraries.

Token naming conventions for product teams: the practical pattern

Token naming conventions for product teams work best when they separate source names from usage names. That is the practical pattern that keeps design files, component libraries, and platform exports aligned without forcing one team’s habits onto everyone else.

Use this 5-step procedure to build the convention.

  1. Start with the smallest stable taxonomy.
    Define 4 to 6 top-level categories first, such as color, spacing, typography, radius, and shadow. If a category cannot be explained in one sentence, it is probably doing too much work.

  2. Decide which tokens are primitive and which are semantic.
    Primitive tokens store the raw scale, like spacing.100 or color.blue.500. Semantic tokens store the purpose, like color.text.primary or space.content.gutter. The result is a system that can change palette or spacing scale without breaking every component.

  3. Choose a delimiter and keep it fixed.
    Most teams use . for token paths because it reads well in code and in docs. Pick one delimiter for 12 months and do not mix in _ or - unless the target platform forces it.

  4. Define state naming once.
    Use the same small state set everywhere: default, hover, pressed, disabled, focus, and, where needed, selected or error. If one component uses active and another uses pressed, the system will drift. A shared state vocabulary keeps component tokens and platform tokens predictable.

  5. Map to platform output last.
    Keep design-facing names stable, then translate them to CSS custom properties, Android resources, or iOS asset names in a build step. The exported format can change; the source convention should not.

A concrete example helps. A text color used on a primary button might be named color.button.primary.text.default in source, then exported as --color-button-primary-text-default for web. A spacing token used for card padding might be spacing.300 in source and become a platform-specific variable name only at export time. The name stays meaningful even if the delivery format changes.

The biggest trade-off here is verbosity. Semantic names are longer than raw scale names, and some teams resist that. But the longer name pays for itself the first time a palette shifts, a component is redesigned, or a second platform joins the system. This pattern is not ideal for tiny throwaway libraries, and it is overkill if a team only needs a dozen tokens for one prototype.

For teams that need governance across design and code, this is the pattern worth standardizing. It also fits naturally into a broader design tokens implementation and governance program, because the naming rules can be reviewed alongside versioning, ownership, and deprecation.

How do color, spacing, and typography tokens fit the same system?

Color, spacing, and typography tokens fit the same system when each category uses the same naming logic but different levels of detail. A token name should tell a consistent story across categories, even if the fields change.

Color is the category where semantic naming matters most. Raw values like blue.500 are useful for palette management, but product teams usually need tokens such as color.text.primary, color.surface.inverse, and color.border.subtle. Those names survive theme changes, dark mode, and accessibility adjustments better than value-based names.

Spacing is usually the simplest category. A scale such as spacing.0, spacing.50, spacing.100, and spacing.200 can work well because space is often a numeric system, not a semantic one. The mistake is to invent too many near-duplicates like spacing.card, spacing.panel, and spacing.section for values that are really just different usages of the same scale. That creates naming debt and turns one scale into 15 exceptions.

Typography needs both scale and intent. A useful structure might separate font.family.sans, font.size.200, font.weight.semibold, and type.heading.lg. The exact split depends on the tools, but the principle stays the same: one name for the raw token, another for the way it is used in the product. If a team collapses family, size, line height, and style into one token name, it becomes hard to reuse any part of the stack.

The common mistake across these categories is naming by page or feature instead of by system role. homepage-blue and checkout-padding feel convenient during launch week and become liabilities by month 3. That kind of name forces a redesign every time a feature moves or a layout changes.

The better test is simple: if the token name mentions a screen, campaign, or product moment, it is probably too specific for a shared system. If it names the role in the interface, it is more likely to scale.

For teams that work in Figma plus code, this is where naming convention documents earn their keep. The same taxonomy can support design tokens, local component variables, and platform exports without asking each tool to invent its own vocabulary.

Which naming mistakes create token sprawl?

The naming mistakes that create token sprawl are inconsistent prefixes, value-based names, duplicate semantic layers, and state names that vary by team. Each one makes the system harder to search and harder to trust.

The most expensive mistake is mixing naming styles inside the same category. If one team uses color.text.primary and another uses text-color-primary, a design system already has two languages before the first release. That costs time in code review, creates broken lookups in tooling, and makes automation brittle.

Another common mistake is using too many prefixes. Prefixes help when they separate domains, such as color., spacing., and typography. They hurt when they become noise. A name like ds-color-brand-primary-default is harder to scan than color.brand.primary.default, and it does not actually reduce ambiguity.

A third mistake is naming tokens after their current implementation detail. gray-12 or 12px-gap locks the token to one visual result. That is fine for a one-off mockup and poor for a token system that has to survive a rebrand, a density shift, or a new platform.

The fourth mistake is state overload. Teams often create state names like hovered, mouseOver, isHover, and interactiveHover because each platform or contributor prefers a different label. That fragments usage and makes mapping impossible to reason about. Use one state vocabulary and document it once.

The fifth mistake is not reserving room for legacy migration. If a team has already shipped primary-blue-text across code and design files, the new convention must include aliases or mapping rules. Renaming everything at once sounds clean and usually creates breakage in 2 places: references in code and references in design handoff.

A practical naming rule can prevent most of this: every token name should be understandable without looking at the value. If the number or hex code is the only clue, the convention may be too weak for a large product team.

How do you migrate old token names safely?

You migrate old token names safely by adding the new naming convention beside the old one, then retiring the old names in stages. A hard rename on day 1 can break references across design files, code, and documentation.

The safest sequence is usually 4 moves.

  1. Inventory existing names.
    List the current token names, where they are used, and which ones have multiple meanings. Even a simple spreadsheet is enough for this first pass if the system is small.

  2. Create aliases or mappings.
    Map old names to new names so both can resolve to the same value. This keeps production output stable while the team updates consumers.

  3. Introduce the new convention in new work only.
    New components, new screens, and new variants should use the new names from the start. That keeps the migration from expanding forever.

  4. Deprecate with a date or release window.
    A token may remain aliased for one release cycle, 2 release cycles, or whatever the team can actually support. What matters is that the retirement plan is written down and visible in the source of truth.

This is where governance matters more than syntax. If a token naming convention has no owner, migration turns into a debate every time a designer creates a new variant or a developer touches an old one. A clear owner can approve exceptions, freeze categories, and decide when a legacy alias is finally removed.

There is a real trade-off here. Aliasing makes migration safer, but too many aliases can hide the fact that the system still has debt. If the old names remain forever, the team ends up supporting two conventions instead of one. The convention should therefore include a deprecation policy, not just a naming grammar.

For teams that need to move without breaking shipping work, the rule is simple: rename in layers, not in one pass.

What should a team document before it publishes the convention?

A team should document the naming rules, the allowed token categories, the state vocabulary, and the migration policy before publishing the convention. A one-page rule set is better than a 20-page theory document if people need to use it every week.

The minimum useful documentation usually includes:

  • A taxonomy list with the approved top-level categories.
  • Examples of good and bad token names.
  • The difference between primitive, semantic, and platform tokens.
  • The approved delimiter and prefix rules.
  • The accepted state set, such as default, hover, pressed, disabled, and focus.
  • The policy for exceptions and legacy aliases.

That documentation should also say what the convention is not for. It is not for naming product features, marketing campaigns, or one-off experiment variables. It is also not for forcing every token into a semantic wrapper when a simple numeric scale is enough. A spacing scale with 6 steps does not need the same naming weight as a button state map.

The strongest convention documents include one or two canonical examples for each category. A color example, a spacing example, and a typography example usually reveal more than paragraphs of prose. People copy patterns faster than explanations.

A good naming convention is not the most elegant one. It is the one that a new designer, a front-end engineer, and a platform maintainer can all follow without a meeting. If the first person to read it needs a decoder ring, the system is already too fragile.

How do you name design tokens consistently?

You name design tokens consistently by using one taxonomy, one delimiter, and one state vocabulary across the whole system.

Drafted with AI; not yet reviewed by a person.

Leave a Reply

Your email address will not be published. Required fields are marked *