
In this article you’ll learn why aligning with the official standard make your tokens work across the entire product spectrum and how you set up design tokens that follow the new standard.
The problem with design token so far
The Promise of Design Tokens
Design tokens are all your design decisions, that define a design system’s aesthetic properties, everything from colors and font sizes to spacing units and border radii. They are the modern evolution of hard-coded values.
They are stored in a central, platform-agnostic repository, establishing a single source of truth for your entire digital product suite.
This central management allows teams to consume the exact same design values across all platforms (web, native apps, documentation). Crucially, updating a token, e.g. changing the value of $color-brand-primary, instantly triggers that change to propagate consistently throughout the entire system. This not only guarantees brand consistency but dramatically reduces maintenance time and the risk of visual regression.
The pain point of diverse formats
When we first embraced design tokens, we knew one thing for sure: they wouldn’t just plug-and-play everywhere. It was understood that to get them from a central repo into platforms like Web, iOS, and Android, there would need to be some transformation logic. That was expected.
What wasn’t expected, was the cross-tool incompatibility due to a missing, stable standard for how to define design tokens.
In the early days, there was no recognized, universal standard and the ecosystem went wild. We got definitions in JSON, YAMLand other languages with all kinds of shapes and properties.
Some important tools, notably design software like Figma, opted out entirely, deciding to wait for an official standard before investing in robust import/export capabilities.
This lack of consensus created a high maintenance burden for design system teams. They were forced to maintain a complex set of custom transformations, not just for deploying tokens, but often just to move data between different authoring tools. The promised efficiency of tokens was constantly dampened by the overhead of format translation.
The Solution: The W3C Design Token Specification
A while ago, the W3C Design Tokens Specification started to emerge. However, it is just a working group and the progress was pretty slow at times, given that everyone on the team has a day job as well. The specification was shaping up to something great, but was in draft mode for a long time, with considerable changes along the way. While better than nothing, the constant, breaking changes, and unpredictable timeline meant sticking to the specs draft was high maintenance and tools like Figma didn’t even bother.
But this changes now, the Design Tokens Community Group (DTCG) has released the first stable version of the standard¹ release 2025.10. We finally have a solid, vendor-neutral target to build against, something all tools can agree on that won’t change overnight.
The impact is immediate. Figma is now shipped native variable import and export² functionality based on this specification. And I am sure that many projects and tools will follow soon.
In the next sections I will show you how to set up tokens that follow the new standard and how you can use style dictionary to transform those tokens for any platform you need to support.
Why standardization matters
Interoperability
The shift to an official W3C standard isn’t just a technical win, it’s a massive workflow upgrade that unlocks true interoperability.
When you have a universal standard, everyone falls in line:
- Design Tools (like Figma)
- Design Token Management Platforms
- Design Token Pipeline Packages (like Style Dictionary)
This common standard means we can now move our tokens freely and seamlessly across our entire workflow without needing custom transformations for every single step.
If your team decides to switch from one token management platform to another, the migration is vastly simplified. You won’t have to rewrite your core token files or complex transformation logic, because your tokens are already in the standardized format the new tool understands. This stability makes switching tools cheaper, faster, and much less scary!
Business Impact: Maintainability and Stability
But the W3C standard doesn’t just have a technical effect. It also changes the impact on the bottom line! This standardization delivers massive improvements for maintainability and stability.
Reduced Maintenance Overhead
Once your key tools adopt the W3C standard, your maintenance effort will reduce to half or less:
- Retire Custom Scripts: You can finally ditch those brittle, homegrown plugins and custom workflows you built just to shove tokens into and out of design tools. Fewer scripts mean fewer things to break!
- Simplify Your Pipeline: Your transformation setup becomes vastly cleaner. You can strip out all that custom logic you needed to handle non-standard formats, leaving a lean, efficient token pipeline. Most of the logic will be done by the tool you choose, out of the box.
Improved Pipeline Stability
A standard reduces the a major risk to your design system. When tools adopt an official specification, they are committed to it:
No Sudden Breakage: You gain confidence that tool vendors won’t suddenly deprecate their custom APIs, because they are now adhering to an industry-wide specification. Your core token pipeline is no longer one undocumented API change away from total collapse (looking at you Figma 🤨). Adopting the standard means sticking to the standard.
Future-Proofing Your Investment
Finally, a standard is the ultimate form of digital insurance. Your investment in tokens today will pay off for years to come:
Universal Compatibility: Any new design tool or new token package will likely adopt the official W3C standard. This means your current set of well-defined tokens will just work anywhere you choose to expand, ensuring your design system remains flexible and scalable for the future.
Diving Into the Standard: The W3C JSON Format
The W3C Design Token Specification utilizes JSON (JavaScript Object Notation) as its serialization format, as it is both human-readabe and machine-parseable. Token files are typically saved as .token.json.
A simple design token
At its most basic, every design token must contain two properties:
- Name: This is the key used in the JSON structure. It often reflects a logical name like
primaryormedium. - Value (
value): This is the actual value the token represents, such as a specific color, pixel value or a font family.
Note that the $ prefix is required. This is to avoid collision with other data, as some of the property names are very common for JSON formats.

Optional Token Fields
The standard specifies several optional fields, but for interoperability’s sake, at least the $type property should be defined.
$type: Defines the category of the token (e.g.,color,dimension,fontFamilyorduration). This helps tools understand how to process the value of the token.$description: Provides human-readable context about the token’s purpose and usage, which could be surfaced in the final output e.g. a css file. Adding a deprecation notice is a typical use case for that.$extensions: Used to attach non-standard, tool-specific metadata to a token without violating the core specification. This property is an object and it is recommend to define any sub-property asorg.[yourOrg].[tool/use case]to avoid naming collisions.

Grouping and Nesting
Tokens are structured and organized using nesting within JSON. But more than just organization, the nesting typically contributes to the token’s final, canonical name.
- Nesting: You group related tokens under parent objects (e.g., all size tokens under a size group, or all brand colors under a color.brand group).
- Final Name: By default, the final, usable name of a token is created by combining the names of its parent groups and its own name, usually joined by a delimiter (like a hyphen or underscore).
In the example below, the final name generated for the token might be typography-body-lineHeight-medium.

Alias (or Reference Token)
An Alias (often called a reference in the specification) is a token whose $value points to the name of another token. This is fundamental for theme creation and ensuring consistency. If the source token changes, all aliases update automatically.
To define an alias use the entire token path including all parents in dot notation and wrap it in curly brackets, e.g. {typography.body.fontSize.medium}
You can reference tokens from other files, if in your transformation process you make sure that those tokens are available at transformation time. How this is done depends on the specific tool you use.

Composite Token
A Composite Token is a single more complex token that groups multiple distinct values. They are used for things like typography or shadow styles. Instead of defining separate tokens for a shadow’s color, offset, and blur, you define one composite token.
Importantly every property of the $value object can reference a raw value or alias.

When converted to languages that support combined outputs like css, you will be able to set the entire shadow with one variable.

W3C Token Types
Color
A color token represents a color value defined as a structured object. This format ensures tools can accurately convert the color across all supported color spaces³ (sRGB, Display P3, OKLCH, etc.).
To get the correct values for your desired colorspace from a hex value, you can use online tools⁴. This makes creating tokens a bit cumbersome, but it will be no issue if you export your tokens from Figma or use a token management tool.
The $type has to be set to color and the $value object must define the colorSpace and components, and may include alpha (transparency) and a 6-digit hex string as a fallback.

Dimension
This token defines a numeric size value that is either a float like 1.2 or an integer like 5 with a unit that is either px or rem. Dimensions are mainly used for things spacing, sizing, border widths, shadow blur or font sizes.
The $type has to be set to dimension and the $value object must define the value and unit. The unit must be defined even if the value is 0.

Font Family
The $type has to be set to fontFamily and the $value must be either a string or an array of strings.

Font Weight
The $type has to be set to fontWeight and the $value must be either a recognized keyword like bold or a numeric value like 500 of strings.

Duration
The $type has to be set to duration and the $value object must define the value as an integer and unit as either "ms" (milliseconds) or "s" (seconds). The unit must be defined even if the value is 0.

Cubic Bézier
Used to define custom easing curves for animations. The $type has to be set to cubicBezier and the $value must be an array of four numbers representing the control points: P₁*(x, y)* and P₂*(x, y)*.

Number
This is a pure numeric value without any unit attached. It’s used for unitless properties like opacity, line height ratios, or z-index values.
The $type has to be set to number and the $value must be an integer or float.

Typography
This composite token bundles all necessary text styling properties (family, size, weight, line height, etc.) into one reusable token.
The $type has to be set to typography and the $value object must define the following properties:
fontFamily— fontFamily token valuefontSize— dimension token valuefontWeight— fontWeight token valueletterSpacing— dimension toen valuelineHeight— number token value
According to the specifications all properties must be defined.

Shadow
A shadow token bundles all necessary properties for a shadow (color, offset, blur, spread and inset).
The $type has to be set to shadow and the $value is either an shadow value object or an array of shadow value objects.
A shadow value object must define the following properties:
color— color token valueoffsetX— dimension token valueoffsetY— dimension token valueblur— dimension token valuespread— dimension token value
The inset property is optional. If present it must be a boolean.
All of the properties must be set, but you can set them to 0px if you e.g. don’t want a blur.

Border
A complete border definition, combining color, width and style into one token.
The $type has to be set to border and the $value object must have the following properties:
color— color token valuewidth— dimension token valuestyle— a strokeStyle token value (see below)

Stroke Style
Defines the pattern of a stroke, specifying the dash and gap sequence.
The $type has to be set to strokeStyle and the $value must be either one of the defined stroke style strings or a strokeStyle object. The following strings are valid:
- solid
- dashed
- dotted
- double
- groove
- ridge
- outset
- inset
When defining a strokeStyle object value instead, you must define the dashArray and the lineCap property.
The dashArray is an array of dimension values defining the lines and gap part of the border.
The lineCap property can be set to "round", "butt" or "square" which are defined in the svg specs⁵.

Transition
Used to define an animation transition, combining a duration, a timing function and an optional delay.
The $type has to be set to transition and the $value object must have the following properties:
duration— duration valuedelay— duration valuetimingFunction— cubicBezier value

Gradient
Defines a color gradient, between two or more colors.
The $type has to be set to gradient and the $value must be an array of objects with the following properties:
color— a color token valueposition— a value between0and1representing a percentage value

The Practical Setup: Migrating to the Standard
If you are just beginning to create design tokens, you have the advantage of starting with best practices.
However, most folks will be migrating an existing token set which requires a good amount of effort. Unfortunately, while the W3C Design Tokens Specification has been released, tool support is still catching up.
Notably, Style Dictionary does not yet support the official release version. Let’s explore how we can implement and work with W3C tokens today.
Update your tokens using AI
You can efficiently update your tokens using AI tools like Copilot. Because tokens follow very clear rules, AI is well-suited for this task.
I suggest performing updates in steps, focusing on one token type per iteration. Be prepared to adjust your AI prompt for complex composite tokens that involve multiple required changes.
I had great success with the prompt below, to update dimension tokens.
There is a new standard for dimension design tokens: https://www.designtokens.org/tr/drafts/format/#dimension)
Update all dimension tokens to use the new standard.
Every dimension token’s value should be split into: value which is a number and a unit which is for example ‘px’
Setting up your token transformation
I just released the latest version of my style-dictionary-utils⁶ package which fully supports the finalized w3c design token spec. So let’s set it up.
Install package
You need to install both style dictionary and style-dictionary-utils.
npm i -D style-dictionary-utils style-dictionary
Create the build process
The build process is the same that you may already know from style dictionary, with a few things to keep in mind so that you use the new utils.
Below is the full script for a simple process. We will run through the individual parts afterwards.
// file ./scripts/buildTokens.ts
import { StyleDictionary as SD } from "style-dictionary-utils";
// create a new style dictionary instance
const StyleDictionary = new SD();
// extend with the transforms you need
const extendSd = await StyleDictionary.extend({
source: ["./src/tokens/**/*.json5", "./src/tokens/**/*.json"],
platforms: {
cssAdvanced: {
prefix: "PREFIX",
buildPath: "./dist/css/",
preprocessors: ["extract-letterSpacing-preprocessor"],
transforms: [
"name/kebab",
"w3c-color/css",
"w3c-border/css",
"dimension/css",
"duration/css",
"cubicBezier/css",
"transition/css",
"fontWeight/css",
"fontFamily/css",
"typography/css",
"gradient/css",
"shadow/css",
"strokeStyle/css",
],
files: [
{
format: "css/advanced",
destination: "variables.css",
options: {
outputReferences: true,
},
},
],
},
},
});
// run the build
extendSd.cleanAllPlatforms();
extendSd.buildAllPlatforms();
Create a style dictionary with the utils loaded by first importing StyleDictionary from the style-dictionary-utils package and run new to initialize an instance.
import { StyleDictionary as SD } from "style-dictionary-utils";
// create a new style dictionary instance
const StyleDictionary = new SD();
The prefix is added before every token name in a css variable this would look like --PREFIX-fgColor-link for the token fgColor.link.
The buildPath is where your converted files will be saved.
{
//...
prefix: "PREFIX", // e.g. --blue-500 -> --PREFIX-blue-500
buildPath: "./dist/css/",
//...
}
Afterwards you must extend the StyleDictionary with some or all of the transformers from the style-dictionary-utils package.
The following transformers are available:
- w3c-color/css: Converts structured color objects into CSS strings like
rgb()oroklch(). - w3c-border/css: Transforms composite border objects into a shorthand CSS
borderstring. - dimension/css: Formats numerical values into CSS-ready strings with units (e.g.,
1rem). - duration/css: Converts time values into valid CSS formats (e.g.,
150ms). - cubicBezier/css: Maps coordinate arrays into the standard
cubic-bezier()function syntax. - transition/css: Combines duration, delay, and timing functions into a shorthand
transitionstring. - fontWeight/css: Maps weights to valid numeric CSS
font-weightvalues. - fontFamily/css: Joins typeface strings or fallback arrays into a comma-separated CSS stack.
- typography/css: Flattens composite typography objects into
fontshorthands. - gradient/css: Processes color stop arrays into
linear-gradientfunctions. - shadow/css: Formats composite shadow definitions into standard CSS
box-shadowstrings. - strokeStyle/css: Translates stroke patterns into CSS border styles or SVG dash-arrays.
You can also add the extract-letterSpacing-preprocessor preprocessor which will extract the letterSpacing from a typography token and turn it into a dimension token. If you don’t use custom letter-spacing or define dimension tokens already, you can skip this step.
Lastly you need to define the output files. In our case, it is a single file called variable.css. Keep in mind that the destination is inside the buildPath, so you will find the output in .dist/css/variables.css.
By setting outputReferences to true, we will keep references to css variables (e.g. var(--blue-500)) that are part of our output. If set to false, all references will be flattened to raw values, like a hex code for colors.
files: [
{
format: “css/advanced”,
destination: “variables.css”,
options: {
outputReferences: true,
},
},
],
With this done, you should be able to convert all valid w3c tokens in ./src/tokens by running the script:
node scripts/buildTokens.ts
Conclusion: The End of Fragmented Workflows
The adoption of the W3C Design Token Standard marks a shift from proprietary, high-maintenance pipelines to a stable, universal ecosystem. By moving away from custom JSON structures and brittle transformation scripts, teams can finally achieve true interoperability between design tools like Figma and diverse production environments.
Building on this foundation provides three immediate advantages:
- Reduced Overhead: Native tool support eliminates the need for maintaining custom plugins and internal translation logic.
- Technical Stability: Relying on an official specification protects your design system from breaking changes caused by unannounced tool API updates.
- Scalability: Standardized tokens are inherently future-proof, ensuring that as your product spectrum grows, your design decisions remain consistent and portable.
Standardization is no longer a theoretical goal. With stable releases and native platform support, it is the new baseline for design systems. Aligning your tokens with the W3C standard today ensures your infrastructure remains resilient, accessible, and ready for the next generation of design and development tools.
- https://www.designtokens.org/tr/2025.10/
- https://www.figma.com/blog/schema-2025-design-systems-recap/#importing-and-exporting-variables
- https://www.designtokens.org/tr/drafts/color/#supported-color-spaces
- https://www.rapidtables.com/convert/color/hex-to-rgb.html
- https://www.w3.org/TR/SVG11/painting.html#StrokeLinecapProperty
- https://github.com/lukasoppermann/style-dictionary-utils