✕ Close

Token Architecture

A three-tier token system: how I structure, name and theme design tokens so a product can scale.

Design system

Guide

My role

Design system designer

Client

Self-initiated

Timeline

2026

Scope

Design system

Guide

Overview

Tokens are decisions, not values.

Most of my design system work on banking products comes down to one question: where does a decision live? This guide is the structure I keep coming back to. Three tiers, one direction of reference, and names that explain themselves.

A design token is a name given to a design value, a hex code or a pixel size, stored in a format every platform can read. Link those names together and you get a theme that keeps Web, iOS and Android in step. The idea goes back to Salesforce’s design system in 2014.

It builds on the public writing of Nathan Curtis, Sam Gordashko and Romina Kavcic. The naming, scale and tooling sections below follow the design tokens chapter of Romina Kavcic’s The Design System Guide, adapted to what has held up for me in practice.

Challenge

Why flat colour lists break.

  • A value like blue-600 says what it is, not where it belongs.

  • Dark mode and multi-brand turn every hard-coded value into a manual fix.

  • Designers and developers end up with two different names for the same thing.

  • Without a hierarchy, nobody knows which token is safe to change.

What tokens buy you

  • A shared language between design and engineering.

  • One source of truth, synced across platforms.

  • Maintenance in one place: change a value once and it updates everywhere.

  • A consistent brand, and products that are faster and cheaper to build.

  • Less design debt and less technical debt.

Process

Three tiers, one direction.

1. Primitive

Raw scales: colour, space, radius, type. Named by what they are (blue-600, space-16). Never used directly in a component.

Colours sit on a numeric tonal scale, 0 to 100 or 100 to 1000, so a new shade can be slotted in later without renaming its neighbours. Poetic names only survive in a very small palette. The palette itself stays as small as the product allows.

2. Semantic

Purpose. color.text.primary, color.surface.default, color.action.primary. This is the only layer designers and developers pick from, and the only layer that changes between themes. Some systems call these alias tokens: a name with a job, pointing at a primitive.

3. Component

Used sparingly, when one component has to break from the general rule. button.background points to a semantic token, never to a primitive.

Categories

Every token belongs to one category: color, font, space, size, border, radius, gradient, shadow, motion, time, icon, z-index, or a composite of several. The category is the first word of the name, so a list of tokens sorts itself.

Naming

Following Nathan Curtis’s levels, a name reads from general to specific: namespace, object, base (category and property), then modifiers (variant and state). Skip the levels you don’t need, but never change the order.

How many levels a name needs depends on how specific the decision is:

  • Two levels, category and concept: color-action.

  • Three levels, category, component and variant: background-button-primary.

  • Four levels, adding state: background-button-primary-hover.

  • Multi-brand or multi-theme systems need more.

A good name passes five checks: short, meaningful, easy to understand, modular and consistent. I would rather settle the structure in a workshop with the team than copy another system’s names.

Sizes

Two scales work. T-shirt sizes (x-small, small, medium, large, x-large) are easy to say out loud. A numeric scale with a fixed multiplier is easier to extend: if 1 is 2px and the multiplier is 2, then 2 is 4px, 3 is 8px. Pick one per category and keep the steps regular.

States

State is the last word in a name and comes from a fixed list: default, hover, active, selected, visited, disabled. A closed list keeps button, input and link tokens parallel.

Theming

Light, dark or a second brand is a new set of values for the semantic layer. Components and their tokens stay untouched. color-bg-card can resolve to white in one brand and grey-400 in another, and the card never knows.

Visuals

Outcome

From table to code.

A structure only works if it survives the trip from Figma to production. The pipeline I use:

  • Inventory: every token and component in one table, with an owner. Edit once, and every reference follows.

  • JSON: the table exports to a token file. The W3C Design Tokens Community Group is working on a shared format so tools can exchange it.

  • Figma: the file is imported as variables, or managed with Tokens Studio to switch token sets and themes.

  • Build: Style Dictionary transforms the JSON into CSS variables, Android XML and iOS formats, converting colour notation for each platform on the way.

  • Check: a JSON graph viewer shows the hierarchy, so broken or circular references are visible before they ship.

What I keep in mind

  • Primitives get abstract names, semantic tokens get purposeful ones.

  • References only point one way: component to semantic to primitive.

  • Regular steps in every numeric scale.

  • A small palette beats a complete one.

  • Don’t overcomplicate. Add a tier or a level only when a real decision needs it.

Let’s talk & connect

Good design starts with a conversation.

Say hello

© 2026 Yaprak Kaynar · Istanbul · Updated last, 2026.

LinkedIn ↗
Behance ↗
Dribbble ↗