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.
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.
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-primaryorcolor-success). - Component Tokens: Colors mapped to specific UI elements (e.g.,
button-primary-bgorsurface-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.