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.
You might recall from our that the Token Name acts as the unique identifier for each design decision in the system and are the most customizable part of a Token's anatomy.
Each Design Token has to have a unique Name per location. However, Design Tokens in different locations may have identical names, and this provides the basis of Theming!
We have seen many different ways to talk about Naming Tokens over the years and it can be really hard to keep them straight! So here's the common terms we will use across our technical docs that you should be aware of.
These terms are not the only way to describe Token Names; they are the labels the Tokens Studio team uses for simplicity across our documentation.
If your team uses different descriptive terms, that's totally okay!
The period (.) character is used in a Token Name to create relationships between Tokens that should be grouped together.
Here are some additional terms related to Token Names with Groups that might be helpful:
This new name, or alias, is also referred to as its semantic name in the community.
For example, a new Token named success-default
with a value referencing {colors.green.500}
could be referred to as an Alias Token.
The name success-default
may also be referred to as a semantic Token, as it provides some meaningful context about how the colors.green.500
Token is intended to be used in the system.
Here are some additional terms related to Alias Tokens that might be helpful:
The Token Name appears anywhere in the Plugin you are creating, viewing or editing a Token.
From the Tokens Page of the Tokens Studio Plugin for Figma, there are three places to see the Name of a Token.
Token data on hover
Token form
JSON file
Hover on an existing Token to view its data. The name
appears as the first piece of data in the list.
If the Token has a flat name, you will see the full name on hover. If the Token has a name with Groups, you will only see the final part of the Token Path in the preview on hover.
Right click on a Token Name and select Edit to view its properties as a form. The first input displays the Name.
Use the Token View Toggle see your Tokens written in JSON code files. The Name will appear as the first part of data about the Token.
If the Token has a flat name, you will see the full name before the rest of the properties. If the Token has a name with Groups, the JSON file will organize the data by groups.
If you are comfortable working in code (and have edit permissions), you can edit Token Names in the JSON view. However, making changes to Token Names in the JSON files which have already been applied to design elements in Figma require a few extra steps to be aware of.
When you apply a Token to a design element in Figma, the name
of the Token can appear in a few placed in the Figma UI, depending on your project:
Styles and Variables - if the Token applied is attached to Style or Variable the matching name will appear in the design panel for the appropriate property when possible.
Unless you've set the Plugin to Apply all Tokens as Resolved Values.
Dev Mode - if you've configured Tokens Studio as a plugin in Dev Mode and selected it as your language.
If you want to learn more about how your Token names appear in Figma, check out these detailed guides:
During the transformation process, they often modify the Token names to match their preferred workflow.
Most common Token name modifications:
Change casing and punctuation.
Flatten them to remove groups.
Add or remove front matter/prefixes.
Remove designer-specific words.
It's important to consider how a Token Name may be modified during the transformation process to avoid unintentional naming collisions.
Now that you've got the basics covered, check out these guides related to Naming Tokens in the Plugin:
Mentioned in this doc:
None yet!
None yet.
Each Design Token has a location of where it lives in our system files. In code, Design Tokens live in JSON files. In Tokens Studio, they live in which are the no-code representation of a JSON file.
→ J
Before you get started , you'll want to get familiar with the Common Terms related to Naming and how to work with them in the Plugin for Figma.
The Token Name is the ID of the design decision captured in the Design Token. Each Token within a Token Set must have a unique name. Token Names are used in code by engineers, so there are some specific nuances to be aware of The Name is also how the Plugin attaches a Token to a design element, style or variable in Figma.
Token Groups helps to organize your Tokens into a tree structure in the Tokens Studio plugin and their code files. , you'll learn about the powerful workflow features we've added to the Plugin which allows you to take bulk actions on Tokens in the same Group!
When a new Token is create, its . The new Token created is sometimes referred to as an Alias Token, because it's purpose is to provide an alias, or a new name, or an existing design decision with some context about how the design decision is intended to be used in the system.
When or using , the Token Name will also appear to identify which Tokens are mapped to the specific layer you have selected.
The Token Name also appears when it is being in the Value input.
→
→ .
SD-Transforms -
Style Dictionary -
Design Tokens Community Group -
Design Tokens Community Group -
Tokens Studio Plugin GitHub -
💡 Something to share?
Engineers typically transform Tokens used in code with , which is tool-agnostic. Tokens coming from Tokens Studio require an additional step: , an npm package that prepares Tokens for Style Dictionary.
🐞 If you are experiencing an issue not listed here, please reach out to us on the Troubleshooting channel of our , , or send us an email support@tokens.studio
💌 Visit to contribute or subscribe to updates.
Export to Figma as Styles or Variables
Apply Token Actions + Settings
Dev Mode + Tokens Studio
theme/light-mode
which has the Token called theme-color.background.default
with a light color as its value, compared to the example on the right in the theme/dark-mode
Token Set which has the value as a dark color. button-label-color,
which could be applied directly to the button design element and represented as a hex code, color style, or variable in Figma. name
input annotated. On the left side, the form is for a color
Token Type. On the right, the form is for a typography Token Type.
color
Token form with its value
input open, showing available Token Names that can be referenced as the value. Once a Token Name is selected from the list, it appears wrapped in curly brackets as the value
in the Token Form.