Sitemap

What Does AI Have to Tell About — Design System At Scale

5 min readAug 16, 2025

--

In the world of design systems, design tokens are the unsung heroes that bridge the gap between design and development. They ensure consistency, scalability, and efficiency across products — especially in complex enterprise environments like Human Resource Management Systems (HRMS). I’ve seen firsthand how poorly managed tokens can lead to chaos, while a well-architected system empowers teams to build faster and better.

This article distills industry best practices into a comprehensive playbook for structuring, managing, and scaling design tokens using Token Studio (a powerful Figma plugin for token management). Whether you’re building an MVP or scaling to enterprise-level HRMS with multiple themes and deployments, these strategies will set you up for success. Let’s dive in.

Enterprise Token Architecture

At the heart of any robust design system is a clear token architecture. Senior teams adopt a four-tier system — an industry standard that separates concerns and prevents token sprawl. This structure ensures tokens are modular, reusable, and easy to maintain.

Here’s how it breaks down:

├── 01-primitives/           # Raw values (never change)
│ ├── color-palette # Brand colors, grays, status
│ ├── typography-scale # Font sizes, weights, families
│ ├── spacing-scale # 4px, 8px, 16px, 32px...
│ ├── radius-scale # Border radius values
│ └── elevation-scale # Shadow/elevation levels
│
├── 02-semantic/ # Purpose-driven tokens
│ ├── color-semantic # text.primary, surface.raised
│ ├── typography-semantic # heading.large, body.medium
│ └── spacing-semantic # gap.small, inset.medium
│
├── 03-component/ # Component-specific tokens
│ ├── button-tokens # Button heights, paddings
│ ├── form-tokens # Input styles, validation
│ └── table-tokens # Row heights, cell padding
│
└── 04-theme/ # Brand/theme variations
├── light-theme # Light mode overrides
├── dark-theme # Dark mode overrides
└── brand-variations # Multi-brand support
  • Primitives: These are your raw, unchanging values. Think of them as the atomic building blocks — brand colors, font scales, etc. They rarely evolve, providing stability.
  • Semantics: These add meaning by referencing primitives. For example, text.primary might alias a dark gray from primitives, making it purpose-driven rather than value-specific.
  • Components: Tailored for specific UI elements, these reference semantics to keep things consistent while allowing flexibility.
  • Themes: Handle variations like light/dark modes or multi-brand support by overriding only what’s necessary.

This tiered approach minimizes duplication and makes updates ripple through the system efficiently.

Token Studio Professional Workflow

Token Studio isn’t just a tool — it’s a workflow enabler. Here’s how pros set it up and use it day-to-day.

A. Initial Setup (One-Time)

1. Create Token Sets (not just collections)

Don’t rely on simple collections; use dedicated sets for each tier. Name them descriptively (e.g., primitives-color, semantic-surface). This allows enabling/disabling sets contextually, like loading only dark-theme tokens for night-mode previews.

  • Each tier gets its own token set
  • Use descriptive names: primitives-color, semantic-surface
  • Enable/disable sets based on context

2. Configure Transformation

Ensure tokens export cleanly to code with built-in transformations:

// Example transformation setup
{
"transforms": [
"name/cti/kebab", // Convert to kebab-case
"size/px", // Add px units
"color/hex" // Convert to hex values
]
}

3. Set Up Sync Method (Critical Decision)

This is a make-or-break decision

  • GitHub Sync: Ideal for collaborative teams with auto-versioning and branch protection.
  • Figma Sync: Suited for design-centric workflows.
  • URL Sync: Quick for sharing prototypes.

B. Daily Token Management

1. Creating New Tokens

Always build bottom-up:

  • Start with Primitives: Add raw values first
  • Build Semantics: Reference primitives with aliases
{
"color-text-primary": {
"value": "{primitives.color.neutral.900}",
"type": "color",
"description": "Primary text color for body content"
}
}
  • Component Tokens: Reference semantics, not primitives
  • Theme Overrides: Only override what needs to change

2. Token Naming Convention (Critical)

Consistency is key. Use this pattern: {category}.{property}.{variant}.{state}

Get Gaurav Thapaliya’s stories in your inbox

Join Medium for free to get updates from this writer.

Examples:

  • color.text.primary (Semantic)
  • color.surface.raised (Surfaces)
  • spacing.inset.medium (Spacing)
  • component.button.height.md (Components)

This makes tokens intuitive and searchable.

{category}.{property}.{variant}.{state}

Examples:
- color.text.primary // Semantic level
- color.surface.raised // Surface colors
- spacing.inset.medium // Internal spacing
- component.button.height.md // Component-specific

C. Sync & Export Strategy

1. Professional Sync Workflow

  1. Development Sync (Continuous)
  • GitHub integration with branch protection
  • Automated PRs when tokens change
  • Style Dictionary integration

2. Token Documentation (Auto-generated)

  • Token descriptions in Token Studio
  • Auto-generate documentation site
  • Include usage examples and don’ts

2. Multi-Format Export

// Style Dictionary config for multiple outputs
{
"platforms": {
"css": {
"transforms": ["name/cti/kebab", "color/hex"],
"files": [{
"destination": "tokens.css",
"format": "css/variables"
}]
},
"js": {
"transforms": ["name/cti/camel", "color/hex"],
"files": [{
"destination": "tokens.js",
"format": "javascript/es6"
}]
},
"tailwind": {
"transforms": ["name/cti/kebab"],
"files": [{
"destination": "tailwind.config.js",
"format": "javascript/tailwind-config"
}]
}
}
}

Industry Best Practices

Token Governance

  • Assign Champions: Dedicate owners per category (e.g., one for colors, one for typography).
  • Review Process: Mandate PRs for changes — no direct edits to production.
  • Deprecation: Mark tokens as deprecated before removal, giving teams migration time.
  • Versioning: Use semantic versioning (e.g., v1.2.0) for token releases.

Scaling Strategies

1. Multi-Brand Support

brand-a/
├── primitives (brand-specific colors)
├── semantic (references primitives)
└── components (shared across brands)

2. Product Specific Extensions

  • Core tokens (shared across products)
  • Product tokens (extend core)
  • Feature tokens (temporary/experimental)

3. Platform Variations

  • Web tokens (px, rem units)
  • Mobile tokens (dp, pt units)
  • Print tokens (pt, in units)

Quality Assurance

  • Accessibility Checks: Contrast ratios in token definitions
  • Token Usage Analytics: Track which tokens are actually used
  • Breaking Change Detection: Alert when removing used tokens

Integration With Development

Handoff Excellence

  1. Token Documentation Site
  • Live examples of each token
  • Usage guidelines and restrictions
  • Interactive token explorer

2. Component Mapping

// Map Figma components to code components
{
"figma-component-id": {
"tokens-used": [
"color.surface.primary",
"spacing.inset.medium",
"typography.body.regular"
],
"code-component": "Button",
"props-mapping": {
"variant": "semantic-token-set"
}
}
}

3. Design-Code Sync Tools

  • Figma-to-code plugins that respect tokens
  • Automated component audits
  • Token usage validation in design files

Developer Experience (DX)

  • IDE Integration: Token autocomplete in code editors
  • Build-Time Validation: Catch invalid token references
  • Hot Reloading: Live token updates during development
  • Type Safety: Generated TypeScript definitions

Design tokens, when architected thoughtfully, transform from simple variables into a powerful framework for consistency and scalability. By adopting a four-tier architecture, leveraging Token Studio’s professional workflow, and enforcing governance with best practices, senior design teams can streamline their processes and adapt to any project’s needs. From initial setup with precise transformations to daily management with clear naming conventions, and from multi-format exports to seamless developer handoff, this approach ensures a robust foundation. Scaling strategies like multi-brand support and platform variations, paired with quality assurance and enhanced developer experiences, empower teams to innovate without losing control. Start with the outlined next steps, iterate based on your context, and watch your design system evolve into a scalable, efficient powerhouse — ready to meet the demands of any complex project.

--

--

Gaurav Thapaliya
Gaurav Thapaliya

Written by Gaurav Thapaliya

Product Designer | Business Driven Solutions | User-Centric | Business-Centric | UX | CX