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.

global

Semantic / Alias

Meaningful Names

Map globals to purposes: background, foreground, primary, muted. Light and dark modes are separate token sets.

semantic/light, semantic/dark

Component

Component-Specific

Tokens scoped to components: button-bg, card-border, input-ring. Reference semantic tokens for easy theming.

component/light, component/dark

Presets

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-brand

Simple

Lightweight global-only tokens

simple

Product / SaaS

Interactive product UI with modes

product

Landing Page

Bold marketing with gradients

landing

Dashboard

Data-dense admin panels

dashboard

Mobile App

Touch-friendly native sizes

mobile

Email

Email-safe px + web-safe fonts

email

Minimal

Under 20 tokens, bare essentials

minimal

Token Types

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