Design Tokens Converter

This design tokens converter turns token JSON exported from Figma or Tokens Studio into code. Paste or drop one or more token files — each becomes a theme, such as light and dark — and it resolves references and composite values and writes CSS custom properties, SCSS variables, a Tailwind config and flat JSON. Choose a variable prefix, copy any format or download them all in one ZIP. It runs in your browser.

Token to CSS

TokenTypeCSS output
color.primary = {color.brand.500}color--color-primary: #6d28d9
space.mddimension--space-md: 16px
font.bodyfontFamily--font-body: Inter, "Helvetica Neue", sans-serif
shadow.cardshadow--shadow-card: 0px 2px 8px 0px #00000026

When to use it

  1. Ship Figma variables to a codebase.
  2. Generate light and dark theme CSS.
  3. Keep Tailwind in sync with a design system.
  4. Migrate SCSS variables to CSS custom properties.
  5. Review a token file for broken references.

How to Use

  1. Paste or drop token JSON files.
  2. Name each theme.
  3. Pick an output format and prefix.
  4. Copy the code or download the ZIP.

Features

  1. DTCG and Tokens Studio
  2. Reference resolution
  3. CSS, SCSS, Tailwind, JSON
  4. Multi-file themes
  5. ZIP of all formats
  6. 100% client-side

FAQs

Which token formats are supported?

The W3C DTCG format ($value/$type) used by Figma and Style Dictionary, and Tokens Studio's value/type format.

How are themes handled?

The first file is written to :root and each additional file to a [data-theme="name"] block, so switching the attribute switches the theme.

Are references resolved?

Yes, including chains; unknown and circular references are reported.

How does the Tailwind config work?

It maps tokens to theme.extend entries that point at the CSS variables, so Tailwind classes follow the active theme.

Is anything uploaded?

No. Everything runs in your browser.

Technical Details

Token files in the W3C Design Tokens (DTCG) format ($value, $type, with types inherited from groups) or Tokens Studio's value/type format are flattened into paths. References such as {color.brand.500} are resolved, including chains, and cycles or missing tokens are reported. Composite values become CSS: shadows to box-shadow lists, font families to quoted stacks, cubic-bezier arrays, dimension objects and typography shorthands. Output is CSS custom properties (first file :root, others [data-theme]), SCSS variables, a Tailwind theme.extend pointing at the variables, and flat JSON.

Web & CSS Tools

Web & CSS Tools

  • SVG Sprite Builder
  • Font Subsetter and WOFF2 Converter
  • Viewport Meta Tag Generator
  • Web App Manifest Generator
  • CSS Button Generator
  • CSS Text Shadow Generator
  • Glassmorphism Generator
  • Neumorphism Generator