How to use the Design Token Converter
- Paste tokens JSON — the W3C $value/$type format or simple nested values.
- Choose the output format and an optional prefix.
- Copy or download the result.
What does this tool do?
Design tokens keep colours, spacing, type and radii consistent between Figma and code. This converter flattens nested groups into names like color-brand, resolves aliases such as {color.brand}, and maps groups to the right Tailwind theme namespaces.
Everything runs in your browser — nothing you paste is uploaded.
Why use it?
- W3C token format.
- Tailwind v3 and v4.
- Resolves references.
Use cases
- Keep Figma variables and code in sync.
- Generate Tailwind themes from a design system.
- Share tokens across web and app projects.
From tokens to CSS
{ "color": { "brand": { "$value": "#0ea5a4", "$type": "color" }, "accent": { "$value": "{color.brand}" } } }
becomes --color-brand: #0ea5a4 and --color-accent set to the same brand colour, because the alias is resolved.
Common mistakes
- Naming tokens after their value (blue-500) instead of their role (brand).
- Aliases that point to tokens that don't exist.
- Mixing units, such as px and rem, in one spacing scale.
Privacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Frequently asked questions
What is the W3C token format?
A draft standard where each token has $value and optionally $type.
Tailwind v3 or v4?
v3 uses a JavaScript config; v4 uses CSS @theme variables. Choose the one your project uses.
Can I add a prefix?
Yes, to avoid clashes, such as --ds-color-brand.
Content last updated . See how M2Toolkit works.