What is Design Tokens?
Design tokens are named values for design decisions such as colors, spacing and type, shared by design files and code.
- TypeDesign system method
- Updated
- Written byDATAL Projects
- Coined by
- Salesforce design system team
- First used
- About 2014
- Type
- Method for storing design decisions as named values
- Standard
- W3C Design Tokens Community Group format
- Common tools
- Figma Variables, Tokens Studio, Style Dictionary
- Output
- CSS variables, Tailwind themes, iOS and Android values
What Design Tokens is
Design tokens are named values for design decisions such as colors, spacing and type, shared by design files and code. They keep a brand consistent across screens and platforms and make themes such as dark mode simple to maintain.
The term design tokens came from the Salesforce Lightning Design System team around 2014. They needed the same colors, spacing and type sizes to stay in sync across web, iOS and Android, so they stored those values in one place and generated code for each platform from it.
The idea spread to most large design systems. In 2019 a W3C Community Group formed to agree on a shared file format so that design tools and code tools could exchange tokens. Design tools such as Figma have since added variables, which work much like tokens inside the design file.
How Design Tokens works
A design token is a named value for a design decision. Instead of writing a hex color such as #0e1522 in many places, the design system defines a token such as color-ink and uses that name everywhere. When the brand changes, the value is updated once and every screen follows.
Tokens are often layered. Base tokens hold raw values, such as a full color palette or a spacing scale. Semantic tokens point to those values and describe their purpose, such as background, text-muted or border. Components then use the semantic tokens, which makes light and dark themes possible by swapping the values behind the same names.
Tokens are usually kept in JSON files or as variables in Figma. A build tool such as Style Dictionary turns them into code for each platform, such as CSS custom properties, a Tailwind theme or values for mobile apps.
Key features of Design Tokens
One source of truth
Colors, spacing, type and radius live in one place that design and code both read.
Theming
Light, dark and brand themes swap values while components keep the same token names.
Cross platform
The same tokens generate values for web, iOS, Android and email templates.
Readable names
Names like text-muted explain intent better than raw hex codes.
Safer changes
A brand update changes a few token values instead of hundreds of files.
Design to code handoff
Designers and developers use the same names, which reduces mismatches.
When to use Design Tokens
A good choice for
- Design systems shared across several products
- Sites and apps with light and dark modes
- Brands that need consistent colors and type everywhere
- Teams where designers and developers work in parallel
- Products that may be rebranded later
Pick something else when
- One-off landing pages that will not change, where a few CSS variables are enough
- Very small projects where a full token pipeline adds more setup than value
- Teams without anyone to own and maintain the token set
Design Tokens compared with alternatives
Design Tokens vs Hard-coded styles
Hard-coded values are quick at first but drift apart as a product grows. Design tokens keep values consistent and make large changes safe.
Design Tokens vs CSS variables
CSS custom properties are one way to deliver tokens on the web. Design tokens are the wider idea, and the same token set can also produce values for mobile apps and design tools.
Design Tokens vs Style guides
A style guide documents the rules in words and pictures. Tokens turn those rules into values that tools and code use directly, so the guide and the product stay in sync.
How to start learning Design Tokens
- List the colors, font sizes and spacing values your product already uses.
- Group them into a small base scale and give each one a clear name.
- Create semantic tokens such as background, foreground, border and accent that point to the base values.
- Use Figma Variables or Tokens Studio to apply the tokens in your design file.
- Export them to CSS custom properties or a Tailwind theme and replace hard-coded values in your code.
What Design Tokens costs
Design tokens are a method, so there is nothing to buy. Style Dictionary is free and open source, and Figma includes variables on its plans. The real cost is the time to set up and maintain the token set.
How DATAL Projects uses Design Tokens
Design Tokens is part of our ui/ux design work. Common uses:
- Design systems
- Light and dark themes
- Design to code handoff
Common questions about Design Tokens
What is a design token in simple words?
It is a named value for a design choice, such as a color, font size or spacing, that is reused everywhere instead of typing the raw value.
Are design tokens the same as CSS variables?
Not exactly. CSS variables are one way to use tokens on the web. Tokens can also be turned into values for apps and design tools.
Do small websites need design tokens?
A small site can use a handful of CSS variables as simple tokens. A full token pipeline pays off once there are several products, themes or platforms.
How do design tokens help dark mode?
Components use semantic names such as background and text. Dark mode swaps the values behind those names, so components do not need separate styles.
What tools work with design tokens?
Figma Variables, Tokens Studio and Style Dictionary are common, along with CSS custom properties and Tailwind themes in code.

