Design Tokens Reference
A standardized token format for building consistent, scalable design systems. Use these token types to power any web, mobile, or email project.
Token Architecture
Global
Raw Primitives
Base values: color scales, spacing steps, font sizes. No semantic meaning — just raw values like #6366F1 or 1rem.
globalSemantic / Alias
Meaningful Names
Map globals to purposes: background, foreground, primary, muted. Light and dark modes are separate token sets.
semantic/light, semantic/darkComponent
Component-Specific
Tokens scoped to components: button-bg, card-border, input-ring. Reference semantic tokens for easy theming.
component/light, component/darkPresets
Choose a preset based on your project type. Each preset generates the right mix of token types, tiers, and token sets.
Full Brand
Complete 3-tier system with light/dark
full-brandSimple
Lightweight global-only tokens
simpleProduct / SaaS
Interactive product UI with modes
productLanding Page
Bold marketing with gradients
landingDashboard
Data-dense admin panels
dashboardMobile App
Touch-friendly native sizes
mobileEmail-safe px + web-safe fonts
emailMinimal
Under 20 tokens, bare essentials
minimalToken Types
Color
Palette, semantic, and component colors
color.primary.500#6366F1color.neutral.100#F1F5F9color.semantic.success#22C55EView details →
Dimension / Spacing
Spacing scale, sizing, layout measurements
spacing.xs0.25remspacing.sm0.5remspacing.md1remView details →
Typography
Font families, sizes, weights, line heights
fontFamily.sans'Inter', system-ui, sans-seriffontFamily.mono'JetBrains Mono', monospacefontSize.xs0.75remView details →
Shadow
Elevation, depth, and drop shadows
shadow.xs0 1px 2px rgba(0,0,0,0.05)shadow.sm0 1px 3px rgba(0,0,0,0.1)shadow.md0 4px 6px -1px rgba(0,0,0,0.1)View details →
Border Radius
Corner rounding from sharp to pill
radius.none0radius.sm0.25remradius.md0.5remView details →
Border
Border widths and styles
borderWidth.thin1pxborderWidth.medium2pxborderWidth.thick4pxView details →
Opacity
Transparency levels for overlays and states
opacity.disabled0.5opacity.overlay0.6opacity.hover0.8View details →
Duration / Timing
Animation and transition timing
duration.instant0msduration.fast100msduration.normal200msView details →
Gradient
Linear, radial, and conic gradients
gradient.primarylinear-gradient(135deg, #6366F1 0%, #8B5CF6 100%)gradient.sunsetlinear-gradient(135deg, #F97316 0%, #EC4899 100%)gradient.oceanlinear-gradient(135deg, #06B6D4 0%, #3B82F6 100%)View details →
Usage in CSS
CSS Custom Properties
:root {
--color-primary: #6366F1;
--color-background: #FFFFFF;
--spacing-md: 1rem;
--font-size-base: 1rem;
--radius-md: 0.5rem;
--shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
}
.card {
background: var(--color-background);
padding: var(--spacing-md);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
}Tailwind Config
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
primary: 'var(--color-primary)',
background: 'var(--color-background)',
},
spacing: {
md: 'var(--spacing-md)',
},
borderRadius: {
md: 'var(--radius-md)',
},
},
},
}Ready to generate tokens?
Use our AI-powered token generator to create production-ready design tokens for any project type.
Generate Tokens