Turn your brand colors, typography settings, and spacing base into a complete design token set. Export JSON tokens, CSS custom properties, and a Tailwind config extension in one click the foundation every scalable design system needs.
Colors with light/dark/contrast variants, type scale, spacing, and border radii — all from your inputs
JSON for Style Dictionary, CSS variables for any framework, and a Tailwind config extension ready to paste
See your tokens applied to a real UI card — buttons, type, color swatches, and spacing — in light and dark mode
Add your brand colors, configure typography settings, set your spacing base — then export a complete, production-ready token set in JSON, CSS, or Tailwind format.
Brand System
Design Token Preview
The quick fox
Base body text at 16px. Consistent type scales improve readability across every screen.
12
Colors
7
Type sizes
9
Spacing
4
Radii
Design Tokens JSON
{
"color": {
"primary": {
"DEFAULT": "#2563eb",
"light": "#4d8bff",
"dark": "#114fd7",
"contrast": "#ffffff"
},
"secondary": {
"DEFAULT": "#7c3aed",
"light": "#a462ff",
"dark": "#6826d9",
"contrast": "#ffffff"
},
"accent": {
"DEFAULT": "#059669",
"light": "#2dbe91",
"dark": "#008255",
"contrast": "#ffffff"
}
},
"typography": {
"fontFamily": {
"base": "Inter",
"mono": "JetBrains Mono"
},
"fontSize": {
"xs": "12px",
"sm": "14px",
"base": "16px",
"lg": "20px",
"xl": "25px",
"2xl": "31px",
"3xl": "39px"
},
"lineHeight": {
"tight": "1.25",
"normal": "1.5",
"relaxed": "1.75"
}
},
"spacing": {
"space-1": "8px",
"space-2": "16px",
"space-3": "24px",
"space-4": "32px",
"space-6": "48px",
"space-8": "64px",
"space-12": "96px",
"space-16": "128px",
"space-24": "192px"
},
"radius": {
"sm": "8px",
"md": "16px",
"lg": "24px",
"full": "9999px"
}
}No account required — 100% free
When a startup scales from three engineers to thirty, design decisions start fracturing. The blue in the hero is #2563eb. The blue in the nav is #1d4ed8. The blue in the button is some hex value that one engineer typed from memory six months ago. Three different blues, no documentation, no system. This is the problem design tokens solve — and this generator gives you the infrastructure to prevent it before it starts.
Design tokens are named variables that store the visual decisions of a design system — colors, typography, spacing, shadows, border radii, motion durations. Instead of hardcoding #2563eb throughout your codebase, you define --color-primary: #2563eb once and reference the token everywhere.
The term was popularized by Salesforce's Lightning Design System team in 2014, but the concept now underpins every major design system — Material Design, Carbon (IBM), Fluent (Microsoft), Spectrum (Adobe), and Base Web (Uber). The W3C Design Tokens Community Group is actively standardizing a JSON format for cross-tool compatibility.
Design tokens matter most at the transitions: when a one-person design team becomes a three-person team, when a two-platform codebase becomes five, when a startup brand needs to support white-labeling. Tokens are the contract between design and engineering that holds across those transitions.
Tokens also enable what's become the most requested feature in every design system: dark mode. Without tokens, dark mode requires duplicating every stylesheet and maintaining two parallel systems. With tokens, dark mode is simply a different set of values for the same token names — you override --color-primary in a [data-theme="dark"] selector, and every component updates automatically.
The generator takes three categories of input and derives a complete, structured token set from them:
primary, brand, danger, accent.All generation happens in the browser using React's useMemo — no server requests, no rate limits. The three output tabs produce the same token data structured for three different consumption contexts: JSON for design tooling, CSS for browsers, and JavaScript for Tailwind.
Paste the CSS variables output into your globals.css or equivalent base stylesheet. Reference them anywhere in your CSS:
.button-primary {
background: var(--color-primary);
color: var(--color-primary-contrast);
padding: var(--space-3) var(--space-6);
font-size: var(--text-sm);
border-radius: var(--radius-md);
}Merge the Tailwind output into your tailwind.config.js. Your token names become utility class names automatically:
{/* Use your token names as Tailwind classes */}
<button className="bg-primary text-primary-contrast px-space-3 py-space-2
text-sm rounded-md hover:bg-primary-dark transition-colors">
Get Started
</button>Use the JSON output as the input for Style Dictionary to transform tokens into iOS Swift, Android XML, React Native, and CSS simultaneously from one source file.
// style-dictionary.config.json
{
"source": ["tokens/tokens.json"],
"platforms": {
"css": { "transformGroup": "css" },
"ios": { "transformGroup": "ios-swift" },
"android": { "transformGroup": "android" }
}
}Name tokens by their role, not their value. --color-primary is a semantic token. --color-blue-600 is a descriptive token. Semantic tokens survive rebrands and theme changes — descriptive ones become lies the moment you change the value. When your primary color changes from blue to teal, --color-primary still makes sense, but --color-blue-600 doesn't.
Enterprise design systems typically use three layers: Global tokens (all raw values: --blue-600: #2563eb), Alias tokens (semantic mappings: --color-interactive: var(--blue-600)), and Component tokens (scoped values: --button-bg: var(--color-interactive)). This generator produces global and alias tokens — add component tokens as your system matures.
The most useful token system documentation explains when to use each token, not just what it equals. '--color-primary: used for primary CTAs, active states, and links. Never use for error states or destructive actions.' This context prevents misuse more effectively than any linting rule.
The biggest maintenance cost in any token system is keeping Figma Variables and code tokens in sync. Tools like Token Studio (formerly Figma Tokens), Supernova, and Specify automate this sync in both directions. The JSON this generator produces is compatible with all three — paste it as your starting point and connect your Git repository to enable automatic PR generation when tokens change in Figma.
Design tokens are the conceptual layer — the named, documented decisions about color, spacing, and typography that define your visual language. CSS custom properties (variables) are one implementation of design tokens in web code. The same token set can also be implemented as JavaScript constants, Sass variables, iOS Swift enums, or Android XML resources. This generator outputs tokens in JSON (the agnostic source of truth) and CSS variables (the web implementation). The JSON can be consumed by Style Dictionary to generate the platform-specific implementations from the same source.
The CSS variables output gives you a :root block with all your token values. Add a second block targeting your dark mode selector that overrides the color tokens with dark-appropriate values. If you use a class-based dark mode (like Tailwind's darkMode: 'class'), the override selector is .dark. If you use a data attribute, it's [data-theme='dark']. Override only the color tokens — your spacing, type scale, and radius tokens typically stay the same across themes. This is the exact pattern used by Tailwind's built-in dark mode utilities and shadcn/ui's theming system.
Yes. Figma Variables (available in Professional and Enterprise plans) uses a similar token structure. You can import the JSON output using the Token Studio plugin (free tier available), which maps the JSON to Figma Variable collections and syncs changes back to your repository. Without a plugin, you can manually create Variable collections in Figma using the values from the JSON as your reference. The generated token names map directly to Figma collection and variable names.
Use Minor Second (1.125) for compact, information-dense UIs like dashboards and admin tools where size differences should be subtle. Use Major Third (1.25) for general-purpose web applications — it's the most common choice because it creates clear hierarchy without extreme size jumps. Use Perfect Fourth (1.333) for content-heavy sites like blogs, documentation, and marketing pages where strong typographic hierarchy improves readability. Use Perfect Fifth (1.5) sparingly — it creates very dramatic size differences that work for editorial design but can feel overwhelming in product UIs.
Store your token JSON file in your Git repository as the source of truth. Add a token generation step to your build process that converts the JSON to platform-specific outputs (CSS, Tailwind config) using Style Dictionary. When a designer updates tokens, they submit a pull request modifying the JSON file — the CI pipeline automatically regenerates all outputs and runs visual regression tests. For Figma sync, connect Token Studio to your repository with a GitHub integration so token changes in Figma automatically create pull requests. This creates a single audit trail for every visual decision your team makes.
Every week you spend without a token system, your codebase accumulates more hardcoded values and your design-code gap grows wider. The best time to build a token foundation is at the start of a project. The second-best time is now. Generate your token set above, paste the CSS variables into your stylesheet, and give your team a shared language for every visual decision going forward.
Free forever · No account · JSON, CSS & Tailwind output
Every tool runs entirely in your browser no uploads, no servers, no accounts. Fast, private, and free forever.
Colors, typography, CSS, SVG & more
Generate beautiful color schemes using color theory algorithms monochromatic, complementary, triadic, and more.
Build stunning CSS gradients visually linear, radial, and conic and copy production-ready code instantly.
Discover expert Google Fonts combinations curated for optimal readability and aesthetic harmony.
Generate production CSS visually flexbox, grid, typography, border, and box shadow with live preview.
Upload, edit, optimize, and convert SVG files entirely in your browser. Export clean SVG or React JSX.
Images, accessibility, spacing & readability
Compress images up to 90% smaller WebP, AVIF, JPEG, PNG with filters, cropping, and rotation. 100% private.
Remove image backgrounds instantly using on-device AI no uploads, no account. Download transparent PNG.
Generate a mathematically consistent shadow elevation system and export CSS variables or Tailwind config.
Build a harmonious spacing scale based on mathematical ratios and export it as CSS or Tailwind config.
Preview and compare border radius values in real time across multiple shapes and sizes.
URLs, QR codes, tracking & security
Shorten any URL instantly with browser history, QR code export, and zero server tracking.
Custom QR codes for URLs, WiFi, vCards & more. Add colors, logo, download PNG or SVG.
Build GA4-ready UTM tracking URLs with smart presets, validation, and CSV history export.
Strip 50+ tracking parameters (UTM, fbclid, gclid, msclkid) with before/after comparison.
See how your URL appears on Twitter, Facebook, LinkedIn & WhatsApp. Check OG metadata.