Free CSS Design Token Tool
Turn Design Tokens into
CSS Custom Properties
Add your colors, spacing, typography, and more. Get a production-ready :root {} CSS block instantly — no setup, no login, 100% in your browser.
🎨
5 Token Categories
Color, spacing, typography, border-radius, and shadow — organized and grouped automatically in the output.
⚡
Instant Live Preview
See your :root {} block update in real time as you add, edit, or remove tokens. Copy with one click.
🔒
100% Private
Everything runs in your browser. Your design tokens never leave your machine.
Add Token
🎨
Color
4--
--
--
--
📐
Spacing
3--
--
--
✍️
Typography
3--
--
--
⬜
Border Radius
2--
--
🌑
Shadow
1--
:root { }13 tokens
:root {
/* 🎨 Color */
--color-primary: #7c3aed;
--color-primary-light: #a78bfa;
--color-background: #ffffff;
--color-foreground: #0f0f0f;
/* 📐 Spacing */
--space-1: 0.25rem;
--space-4: 1rem;
--space-8: 2rem;
/* ✍️ Typography */
--font-size-sm: 0.875rem;
--font-size-base: 1rem;
--font-size-lg: 1.125rem;
/* ⬜ Border Radius */
--radius-sm: 0.25rem;
--radius-md: 0.5rem;
/* 🌑 Shadow */
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}Frequently Asked Questions
Everything you need to know about CSS Variables Generator.