Last updated
Was this helpful?
Last updated
Was this helpful?
The name
of a Design Token tells us who, or which parts of our system, this design decision is intended for.
The name
acts as the unique identifier for each design decision in the system and are the most customizable part of a Token's anatomy.
For example, a Token with a Name of button.success.hover.label.color
almost tells a story about the design decision without knowing anything else about the Token.
success
= This design decision applies to elements communicating a successful interaction, in this case, a button
.
label
= The Token belongs to a label, most likely a text element.
color
= Changes the color of the glyphs in the text layer.
hover
= This decision only applies under the condition of a hover interaction.
How you write your Token Names is highly flexible, and there are many factors that go into creating the ideal Token Name templates (also called Token taxonomies), that will work for you, your project, and your team.
So instead of suggesting "the right way" to name your Design Tokens, we will share some of the qualities of a great Token Name, and link you to the technical specs so you can figure out "your right way".
A great name for a design token is:
unique
simple for humans and machines to read and remember
specific to the type of decision being captured in the Token
supportive of a well-organized Token structure
foundational to automation between design and development processes
scalable as the system matures.
Check out this video clip from the Into Design Systems Conference 2024 where Sam from the Tokens Studio team talks about what makes a great Token Name.
We have compiled the technical requirements of naming Tokens to help you get started. There are links to further learning resources from the community included in this guide.
Now that you've learned the basics of what a Design Token is and each of its parts, you are ready to explore some of the broader concepts to deepen your Token knowledge, or jump into Tokens Studio to put what you've learned so far into practice!