Design Token Preview

Visually inspect, edit, and validate your color design tokens before exporting. Ensure every token combination maintains perfect contrast.

Token Inspection

Edit token values below and see them update in the UI Preview in real-time.

Color Tokens
Semantic Tokens
Surface Tokens
Text Tokens
Border Tokens
State Tokens

Token UI Preview

Surface Component

This card uses the background, surface, text, muted, and border tokens.

Success State

Action completed successfully.

Error State

Something went wrong.

Contrast Inspector

Live validation of your current token combinations.

Text / Background
17.74:1
Muted / Background
2.54:1
Primary / Background
4.47:1
Text / Surface
16.98:1
Primary Button Text
4.47:1

Validating Your Token Architecture

A strong design system relies on semantic meaning rather than hardcoded colors. Instead of using #ef4444 directly in your components, you use a token like color.semantic.error.

The Three Tiers of Tokens

  • Global Tokens (Core): The raw color values (e.g., blue-500 = #3b82f6). These are usually defined in your color scales.
  • Semantic Tokens: Colors mapped to a specific meaning or intent (e.g., color-primary or color-success).
  • Component Tokens: Colors mapped to specific UI elements (e.g., button-primary-bg or surface-elevated).

This tool helps you visualize the relationship between your Semantic and Component tokens. By tweaking the values in the inspector, you can instantly see how changes ripple through the simulated UI components.

Frequently Asked Questions