
We get it – you’re figuring out your first design system. You’ve covered components, you’ve written some documentation, you’ve delved into accessibility… and now there’s something else to tackle...
Let’s keep it simple. Design tokens define visual design attributes such as color, typography, and spacing. They are essentially a way of codifying design decisions into a reusable and scalable system, allowing for syncing between your design tooling and code. This means that they promote consistency and efficiency - while providing a foundation of accessibility and inclusivity. Tokens are particularly useful when it comes to large organizations. If you have multiple teams working on different products under one brand, ensure all products are aligned with the brand's visual identity.
Let’s break it down. Design tokens work in a similar way to variables, if you're familiar with them. The only essential parts of a token are name and value. The name is a descriptive label for the token, such as "primary color" or "font size". The value is the actual value, such as "#007aff" for the primary color or "16" for the font size, or can be an alias of another design token. The only other value in a design token that is important (but still optional) is the type. This is a machine-readable classifcaiton of what the token represents. For example, color, dimension, typography, shadow etc.
As specified in the Design Tokens Community Group spec, there are other optional parts you can include in your token. Descriptions allow for a human-readable explanation of the token's purpose, like "this is the primary brand color for the core brand". Extensions allow for vendor or tool specific metadata, but is likely not used much by people creating tokens. Finally, the deprecated property, allows for folks to mark when a token has been deprecated.

There was a small reference to 'aliasing' above, which probably needs a little explanation. One of the cool things about tokens is that they can reference each other. This means that you can build layers of token architecture that allows you to get extremely specific in what you're defining. In practice, most people define at least a primitive layer and a semantic layer. The primitive layer is a layer that is probably only available to your design systems team, where the absolute values are defined. For example, red500: #FF0000. In the semantic layer, you would then define your primary-color: $red500, which abstracts your token and gives it context. You can then provide even more context at the semantic layer, by defining say button-primary-background: $primary-color. This then means that if you ever need to update your primary brand color, it can be done once and it will cascade down.
This is scratching the surface one what can be included in tokens, as there's even more including defining color spaces, units etc., but provides a good top-level view.
Design tokens offer you a pre-defined palette to work with on both the design and code side of creating products. Not only does it limit the options a designer or developer can use, but also provides extremely contextual naming when they do. They'll know to pick $primary-button-border as the border of a primary button, because it says what it does on the tin.

This is also done in a way where the different sides can remain in sync. What usually happens is design tokens are defined in design tools (in Figma, they're known as variables), and then synced through to documentation and code. This can be an automated pipeline, so whenever a change is made in Figma, it automatically syncs through to the code via pipeline automation and pull requests.
Because you wanna be consistent and efficient, that’s why we all have design systems, right?
Pre-defining variables mean there will be fewer slip-ups, and designers and developers will be able to work quickly and effectively. Also, design tokens help to ensure all of your work is accessible and inclusive. By defining color values, for example, design teams can ensure that text and other elements are legible for users with visual impairments. Tokens provide a shared language and understanding of your brand's design.
Design tokens are a super powerful tool for managing your design system. Using them, teams are able to create a scalable and reusable system - one that can be used across different platforms and devices. As systems have evolved and grown in importance, design tokens have become an essential part of the design system toolkit.
We have some really great deep dives into design tokens. This here is just your basic introduction to what they actually are. However, there is so much more to explore on how to make them, how to ace them, and how to utilize design tokens fully to expand your design system’s efficiency.
We have in-depth articles on the importance of design tokens and how to build them here, alongside how to actually manage tokens in zeroheight. Also, we have a great three part series on setting up your variables in Figma, exporting them to zeroheight, and then automating the whole process!