Tokens Studio for Figma
  • Getting Started
    • Tokens Studio Plugin for Figma
    • Install the Figma Plugin
    • Pro Licence for the Figma Plugin
    • Join the Slack Community
    • Feature Requests - Featurebase
    • Changelog - Featurebase
  • Design Token Fundamentals
    • Intro to Design Tokens
      • Token Anatomy - Type
      • Token Anatomy - Value
      • Token Anatomy - Description
      • Token Anatomy - Name
  • Token Management
    • Token Types
      • Asset
      • Boolean
      • Border - Composite
      • Box Shadow - Composite
      • Color
        • Modified Colors (pro)
        • Gradient Colors
      • Dimension
        • Border Radius
        • Border Width
        • Sizing
        • Spacing
      • Number
      • Opacity
      • Other
      • Text (string)
      • Typography - Composite
        • Font Family
        • Font Weight
        • Font Fallbacks
        • Font Size
        • Line Height
        • Letter Spacing
        • Paragraph Indent
        • Paragraph Spacing
        • Text Case
        • Text Decoration
      • Composition (legacy)
    • Token Values
      • Token Values with References
      • Using Math in Token Values
    • Token Names
      • Token Name Technical Specs
      • Token Groups
      • Edit Token Names
    • Token Description
    • Token Sets
      • JSON View
  • Themes management
    • Themes (pro)
    • Themes that switch
  • Working in Figma
    • Variables and Tokens Studio
    • Styles and Tokens Studio
    • Export to Figma Guide
      • Export Options
      • Export Using Themes (pro)
      • Export Using Token Sets
      • Variables Skipped on Export
      • Styles with Variable References
    • Import from Figma Guide
      • Import Styles from Figma
      • Import Variables from Figma
        • Connect Themes to Imported Variables
        • Imported Variable Types and Token Types
    • Non-local Variables and Styles (pro)
    • Remove Tokens from Figma elements
    • Dev Mode in Figma
  • Settings Management
    • Plugin Settings
    • Base Font Size Setting
    • Token Format - W3C DTCG vs Legacy
  • Token Storage and Sync Integrations
    • Local Document - Figma File Token Storage
      • Figma Data Limits
    • Remote Token Storage Integrations
      • GitHub - Git Sync Provider
      • GitLab - Git Sync Provider
      • Bitbucket - Git Sync Provider
      • Azure DevOps - Git Sync Provider
      • JSONBin - Cloud Sync Provider
      • Supernova - Cloud Sync Provider
      • Tokens Studio Platform - Cloud Sync Provider
      • URL - Server Sync Provider
      • Generic Versioned Storage - Server Sync Provider
    • Multi-file Sync to Remote Storage (pro)
    • Manage Sync Providers
      • Edit Sync Provider
      • Change Active Sync Provider
      • Remove Sync Provider
    • Sync Changes to Remote Storage - Push and Pull
    • Branch Switching (pro) - Version Control
  • Inspect and Debug Tokens
    • Inspect Tokens
    • Remap Tokens
  • Transform Tokens for Development
    • Style Dictionary + SD Transforms
    • Official docs for Style Dictionary
  • Style Dictionary Playground
  • Troubleshooting
    • Reset Tokens from Dev Console
    • Tokens Studio Status
  • Open Source
    • Contribute
    • Shared Plugin Data
Powered by GitBook
On this page
  • Token Groups
  • Working with Token Groups
  • 1. Create a Token with a Group
  • 2. Collapse and expands Tokens by Group
  • 3. Rename all Tokens in a Group
  • 4. Duplicate all Tokens in a Group
  • 5. Delete all Tokens in a Group
  • 6. Export to Figma as Styles
  • W3C DTCG Token Format
  • Resources

Was this helpful?

Edit on GitHub
Export as PDF
PreviousToken Name Technical SpecsNextEdit Token Names

Last updated 22 days ago

Was this helpful?

Token Groups

The period (.) character is used in a Token Name to create relationships between Tokens that should be grouped together.

Token Groups helps to organize your Tokens into a tree structure in the Tokens Studio plugin and their code files.

It might help to imagine each Design Token as a 'file' containing data about every individual design decision you make and the Token Set as the 'folder' where these 'files' are located, which helps you to keep things organized. However, like any folder and file system you might be familiar with, the Design Tokens in the Token Set must all have unique names. Have you ever tried to add a file to a folder on your computer that already has a file with the same name? Your computer will ask you if you want to keep both files and rename the new one or replace the old file.

In this mental model, Token Names with Groups create the individual "file" of a Token into a series of "sub-folders" or sections that enable you to quickly navigate through your design decisions and perform bulk actions.

For example, these Color Tokens do not have any grouping, also known as Flat names:

colors-green-100
colors-green-200
colors-green-300

Compared to grouped names, which replaces the dash (-) with a period (.):

colors.green.100
colors.green.200
colors.green.300

These 3 Tokens would end up being grouped in JSON file:

{
  "colors": {
    "green": {
      "100": {
        "value": "#0e1512",
        "type": "color"
      },
      "200": {
        "value": "#121b17",
        "type": "color"
      },
      "300": {
        "value": "#132d21",
        "type": "color"
      }
    }
  }
}
```

When you use groups in your Token Names, this helps to create logical grouping of similar design decisions which makes them easier find and faster to work with in code.

This is especially helpful when you start working with Component Specific Tokens! Your engineers will see all the Tokens related to a component grouped together which helps them work faster!


Working with Token Groups

In Tokens Studio, once a Token Group is created you can take advantage of powerful workflows which allow you take bulk actions on all Tokens with the Group:

  1. Quickly add a new Token to a Group with it's name pre-filled.

  2. Modify your Token Views by collapsing and expanding Token Groups.

  3. Rename all Tokens within the Group.

  4. Duplicate all Tokens in Group.

    1. In the same Token Set (with a name change)

    2. In a different Token Set

  5. Delete all Tokens in a Group at the same time.

  6. Tokens exported to Figma as Styles can be shortened

Create Token Groups

To create a Token Group, write the Name of the Token to include a period between each group. There is no limit to the number of groups within your Token Names.

1. Create a Token with a Group

Once a Token Group is created, hover on the Group Name to see a quick add action (icon button with a + symbol) to the right of the group name.

Selecting the quick add action allows you to create a new Token (same Token Type) within the same Group by pre-filling in the Token's name.

Once a Token is created with a grouped name, hovering on the Token Name displays only the final part of the name.

2. Collapse and expands Tokens by Group

Once a Token Group has been created, from the Tokens Page of the Plugin, select the name of any Token Group to collapse or expand all Tokens within the group.

The plugin is organized by Token Type, so to improve the workflow, when you collapse or expand a Token Group that behaviour is applied across all Token Types with the same group name in the current Token Set.

For example, collapsing the button.danger group in the Color Token part of the Plugin, also collapses that group in the Typography Token part of the plugin.

3. Rename all Tokens in a Group

Making the name change to the group will rename all children below it at the same time.

Right click on a Token Group name to open its action menu.

  • Select Rename

  • Enter the new name in the input

  • Select the Change button to save your new name.

    • Or, select Cancel to close the confirmation modal without changing the name of any Tokens within the selected Group.

When choosing a new name for the Token Group, it's important to follow the best practices for naming based on your project requirements and the technical specs.

If you want to add or remove a group within a Token Name, select any group following where you want the name change to take place. This shows the full Token path before the group you selected so you can choose where you want to change the group name. This also works for renaming more than one group at a time!

Renaming only affects Tokens of the same type

You may have spotted the helper text on the rename group form as a reminder that renaming only affects Tokens of the same type . This means if you have many Token Types with the same group structure in the name, you have to remember to manually change the name of each Token Type.

For example, lets say you have a Token Set with all Tokens starting the word semanticand your team decides its not necessary anymore, you'll need to change the Group name for each Token Type in the set as a series of steps.

4. Duplicate all Tokens in a Group

Duplicating a group will duplicate all Tokens within the Group it at the same time in a Token Set of your choice. This is handy when ideating on new ideas, setting up new themes or components with similar Tokens.

Right click on a Token Group name to open its action menu.

  • Select Duplicate

  • Select the destination Token Set where the Tokens should be added

    • If duplicating in the current Token Set, you must rename the group to ensure all Tokens maintain a unique name.

  • If you want to duplicate the Group to multiple destinations, you can re-open the Token Set select menu to add another destination.

  • Save and confirm your action.

  • Or, select Cancel to close the confirmation modal without duplicating the Tokens within the selected Group.

Known Issue

You must deselect the current Token Set from the menu as a manual step, the menu will close and any error messages should clear, then you can select a new Token Set as your destination for the duplication.

5. Delete all Tokens in a Group

Deleting a Token Group will permanently remove all children Tokens within the Group it at the same time.

This is a destructive task so be sure you are intending to delete all Tokens within the group and subgroups before confirming the action.

Right click on a Token Group name to open its action menu.

  • Select Delete

  • Save and confirm your action

  • Or, select Cancel to close the confirmation modal and keep your Token Group.

You may have to go through your Tokens to check for broken references due to Tokens being deleted as the plugin does not Surface this information to you.

6. Export to Figma as Styles

As your Token Names get more sophisticated, its common to add a prefix which helps to keep things organized for those on your team working with the Tokens.

But for those on your team not working with the Tokens directly, these prefixes may not be as helpful and often eat up the limited realestate they have to work with in the Figma UI.


W3C DTCG Token Format

A group is a set of tokens belonging to a specific category.

For example:

  • Brand

  • Alert

  • Layout

Groups are arbitrary and tools SHOULD NOT use them to infer the type or purpose of design tokens.

Figma uses the forward slash /to create their groups in variables and styles. The Plugin will automatically convert between period and forward slash when importing and exporting Tokens in Figma.

Tokens Studio is will be iterating on how we approach Groups in the near future to more closely align with the W3C DTCG specifications.

  • Support a Description of a Group

  • Support assigning a Type to a Group

  • Support additional data via Extension data in the JSON

  • Support deprecated data in the JSON


Resources

Mentioned in this guide

Community resources:

  • None yet!

Known issues and bugs

Requests, roadmap and changelog

You might recall from the that you can think of the relationship between Tokens and Token Sets similar to files and folders you save on a computer.

You might recall from the that In code, engineers often combine all Token Sets into a single file of Tokens, which are organized by Token Name in alphabetical order.

→

Tokens Studio will automatically convert your Group Names to /when

Follow the prompts from

So when you Export your Tokens to Figma as Styles, you can choose an With this option enabled, the colors.green.100 Token will be exported as a Color Style in Figma called green/100 as the Plugin automatically converts the periods to forward slashes to work with Figma's grouping format.

→

group is an official property of a Design Token in the W3C Design Token Community Group specifications.

As this work is defined it will be added to the resources section of this guide, and visible on our public roadmap,

Design Tokens Community Group -

Design Tokens Community Group -

Tokens Studio Plugin GitHub -

Tokens Studio Plugin GitHub -

DTCG W3C Token Group Metadata -

Token Set guide
Technical Specs for Naming Tokens guide
Jump to the Token Name Technical Specs guide for more details
Exporting to Figma as Styles or Variables.
the Plugin to remap any Tokens as needed.
Token Name Technical Specs
Jump to the Export to Figma guide for more details.
W3C Draft, 3.7 Group
which you can subscribe to here.
W3C Draft, 3.7 Group
W3C Draft, 6 Groups
Open issues for Token Groups
Open issues for Group Names
Description and Type
option to Ignore the first part of the Token Name.
The Tokens Page of the Plugin shows a series of Color Tokens created with Groups in their Names. The left image shows the list view, the right image shows the JSON view of the same Tokens.
Two examples of Token Sets being viewed as their JSON file from within the Plugin. The left example shows flat Token Names, the right shows Token Names with groups.
A Color Token form in the Plugin appears in the left image with 3 parts of its name annotated to represent groups. 1 - colors. 2 - gray. 3 - light. In the right image, those same groups are displayed on the Tokens page.
In the left screenshot of the Tokens Page of the plugin, the Token name group colors.gray.lightis hovered on, revealing the plus-symbol quick action. Once the action is selected, a new Token Form is opened, pictured on the right. The Token form has the name input pre-filled with the group name colors.gray.light.
Two examples of Token Sets being viewed from the Tokens page of the Plugin. The left example shows flat Token Names, the right shows Token Names with groups. When the Token Name is hovered on, it appears differently if the Name is flat or grouped.
Selecting a Token Group Name on the Tokens Page of the Plugin to expand or collapse all Tokens within the Group. In these images, the colors.gray.lightgroup is expanded on the left and collapsed on the right.
On the Tokens page in the Plugin, right-click on a Group Name to see additional actions. In this example, Rename was selected, which opens a confirmation modal where you define the new Group Name.
On the Tokens page in the Plugin, right-click on a Group Name to see additional actions. In this example, Duplicate was selected, which opens a confirmation modal where you choose the destination Token Set where the duplicated Token Group will live.
On the Tokens page in the Plugin, right-click on a Group Name to see additional actions. In this example, Delete was selected, which opens a confirmation modal.
Page cover image

🐞 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

💡 Something to share?

💌 Visit to contribute or subscribe to updates.

community Slack
submit it on our feedback tool
Submit it here!
https://feedback.tokens.studio/