Star on GitHub

Design tokens validator

Paste a design tokens file and see every way it breaks the W3C Design Tokens format: which token, which line, what is wrong and which section of the spec says so. An older file can be rewritten into the 2025.10 shapes in one press. Nothing leaves your browser.

Validator#

4 issues to look at

Select an issue to find its line and see how to mend it.

Tokens checked
11
Errors
4
Warnings
0
Rewrites value and type, hex and rgb colours, “16px” and “200ms” into the 2025.10 shapes, and shows what changed.

How do I use it?#

  1. Paste or drop your file

    Paste the JSON into the editor, drop a .json file onto it, press Open a .json file, or try one of the samples above it. It is checked as you type, and the example loaded at first shows four different mistakes.

  2. Read the issues

    Each issue gives the token path, its line in your file, one sentence on what is wrong and a link to the spec section. Select an issue to jump to its line in the editor, and open it for the spec link and, where a rewrite can mend it, a Fix this button.

  3. Fix them, or upgrade

    Correct the file in place, fix one token at a time, or press Upgrade all to 2025.10 to rewrite an older file into colour, dimension and duration objects and see a before and after.

  4. Copy, download or convert

    Copy the result, download it, or press Open in converter to turn it into CSS variables, a Tailwind v4 theme, SCSS or TypeScript.

What does it check?#

The rules come from the Design Tokens Format Module 2025.10 and its Color Module, read from the text rather than from memory, and each issue links to the section behind it.

Names: a token or group name may not start with $ or contain {, } or .. Tokens: a $value is required, and a $type that is one of the thirteen the spec defines, written in the right case, either on the token, inherited from the closest group, or taken from the token an alias points at. Values: a colour is an object with a colorSpace and components in range, a dimension is px or rem, a duration is ms or s, and font weights, cubic Béziers, numbers and stroke styles each have their own shape.

Aliases: the target must be a token that exists, chains may not loop, and an alias must agree with a type you set on it. $ref JSON Pointers and $extends on groups are checked the same way. Composites: shadow, border, typography, transition and gradient must have exactly their defined sub-values, each a valid value or an alias to a token of the right type.

How do I upgrade an older file to 2025.10?#

Press Upgrade all to 2025.10 under the issues. Old value and type become $value and $type; #2f6fed, rgb() and hsl() strings become sRGB colour objects that keep a hex fallback; "16px" becomes { "value": 16, "unit": "px" } and "200ms" a duration object. Tokens Studio type names such as sizing and boxShadow map to dimension and shadow. You get a before and after, and the result is checked again so you can see what is left.

Then use Open in converter to hand the file to the design tokens converter for CSS variables, a Tailwind v4 theme, SCSS or TypeScript.

Orvain UI tokens ship in this format.

Questions#

Is my tokens file uploaded anywhere?

No. The checking and the upgrade run in your browser, so the file you paste or drop never leaves the page.

What does the validator check?

What changed in the 2025.10 format?

Will it read my Tokens Studio or Style Dictionary file?

Why does it say my token has no type when it is obviously a colour?

Which version of the spec is this?