Skip to main content
UI / UXDesign SystemsDiagramIntermediate

Design Tokens

KO: 디자인 토큰 (Design Tokens)·EN: Design Tokens·JA: デザイントークン

Platform-agnostic named variables for color, typography, spacing, and elevation that serve as a single source of truth across design tools and code

Table of Contents

Structure Diagram

3-Tier Design Token ArchitectureTap a node
AliasBindOverride1. Primit…2. Semant…3. Compon…Instant T…
ROOT1. Primitive (blue-500)
1 link
Quick Answer

What is Design Tokens?

Platform-agnostic named variables for color, typography, spacing, and elevation that serve as a single source of truth across design tools and code. It is a core concept in Design Systems within UI / UX.

Core Principles

Design Tokens replace hardcoded visual values (#F472B6, 16px, 8px) with platform-agnostic named variables shared across Figma and engineering codebases (CSS custom properties, iOS, Android).

Mature systems organize tokens into three tiers:

  1. Primitive: Raw palette values (pink-400, space-4).
  2. Semantic: Role-based aliases (text-primary, surface-raised, border-subtle).
  3. Component: Optional scoped overrides (button-primary-bg).

Practical Takeaways

  • Consume Semantic tokens in components: Referencing surface-raised instead of raw zinc-900 lets dark mode and brand re-theming work globally without touching component code.
  • Avoid over-engineering Component tokens: Many teams thrive on a crisp 2-tier (Primitive + Semantic) model, adding component-level tokens only where bespoke flexibility is truly needed.
  • Automate Figma-to-code sync: Exporting W3C DTCG JSON via Style Dictionary keeps design files and CSS variables continuously aligned.

Notable Examples

  • Theme switching: Redefining semantic tokens under [data-theme="dark"] to theme hundreds of screens at once.
  • Multi-brand design systems: Shipping distinct brand skins from one shared component library by swapping token files.
  • Cross-platform parity: Generating Web CSS, Swift, and Kotlin constants from one canonical JSON source.