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
ROOT1. Primitive (blue-500)
1 linkQuick 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:
- Primitive: Raw palette values (
pink-400,space-4). - Semantic: Role-based aliases (
text-primary,surface-raised,border-subtle). - Component: Optional scoped overrides (
button-primary-bg).
Practical Takeaways
- Consume Semantic tokens in components: Referencing
surface-raisedinstead of rawzinc-900lets 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.