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
How do I use it?#
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.
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.
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.
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?
Token and group names, that every token has a $value and a known $type (its own, inherited from a group, or taken from the alias it points at), the shape of each value (colours and dimensions are objects in 2025.10), aliases (the target exists, no loops, the type matches), $extends, and the composite types: shadow, border, typography, transition, gradient and strokeStyle. Each issue gives the token path, the line in your file and a link to the section of the spec that makes it a rule.
What changed in the 2025.10 format?
Colours stopped being strings: a colour is now an object with a colorSpace, its components and an optional alpha and hex fallback, which makes room for Display P3, OKLCH and the other CSS colour spaces. Dimensions and durations became objects with a value and a unit, so { "value": 16, "unit": "px" } replaces "16px". The format also gained $root tokens, $extends for groups and JSON Pointer references.
Will it read my Tokens Studio or Style Dictionary file?
Yes. A file that spells value and type without the dollar sign is read as the older style: the validator reports it once instead of failing every token, and the upgrade button rewrites it into $value and $type with colour, dimension and duration objects. Properties the new format has no place for, such as Style Dictionary attributes, move into $extensions so nothing is lost.
Why does it say my token has no type when it is obviously a colour?
The spec forbids tools from guessing a type from the value, so a token with no $type, no type on any group above it and no alias to a typed token is invalid. Set a $type on the token or on its group. The upgrade button does this for you when a value is plainly a hex colour, a px or rem size or a duration, and tells you which tokens it typed.
Which version of the spec is this?
The Design Tokens Format Module 2025.10 and its Color Module, the first stable release from the Design Tokens Community Group (final report of 28 October 2025). Where the spec leaves a choice to tools, such as warning about names that differ only by case, the validator reports a warning rather than an error.
