Populating your Tokens section
Building your Tokens
➕ Adding folders and token sets
Tokens in DSM are organized into sets. Tokens sets correspond to JSON files with multiple tokens. You can group tokens into a folder before grouping some into a token set.
To create a new tokens set:
- Open your design system in the DSM web view and navigate to the Tokens page.
- In the left-hand navigation, click Add > Tokens set.
➕ Adding a new token
To add a new token:
- Open a tokens set and click Create new token.
- Add a Name and Value for the token.
- Click the checkmark icon to save.
Once added, tokens can be renamed, reordered, or deleted.
➕ Creating a reference token
To create a token reference (often called an “alias”), enter the name of the referenced token in the value field. If the referenced token already exists, select it from the auto-complete drop-down and click the save icon.
After creating the token reference, it will appear as a link in the Value column. Hover over the link to see the current value of the referenced token. If the referenced token is defined more than once (e.g., to support themes), the hover state will show all possible values.
Once added, references can be removed or changed. When you remove a token, DSM will replace token references with the removed token’s value.