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 | Type | CSS output |
|---|---|---|
| color.primary = {color.brand.500} | color | --color-primary: #6d28d9 |
| space.md | dimension | --space-md: 16px |
| font.body | fontFamily | --font-body: Inter, "Helvetica Neue", sans-serif |
| shadow.card | shadow | --shadow-card: 0px 2px 8px 0px #00000026 |
The W3C DTCG format ($value/$type) used by Figma and Style Dictionary, and Tokens Studio's value/type format.
The first file is written to :root and each additional file to a [data-theme="name"] block, so switching the attribute switches the theme.
Yes, including chains; unknown and circular references are reported.
It maps tokens to theme.extend entries that point at the CSS variables, so Tailwind classes follow the active theme.
No. Everything runs in your browser.
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.