You can split your tokens up into multiple sets, or themes.
Splitting tokens up has many benefits:
- Allow you to split up options and decisions
- Gives you the ability to semantically seperate tokens
- Different sets can be exposed by activating only what you need
You can create a new set by clicking the + at the bottom of your existing sets. Enter a unique name.
Click on the token set (not the checkbox) to switch editor context to this new set
Right-click a set to display rename and delete options.
Right-click a set to enable treat as source. When a token set is treated as a source, these tokens will not be exported as styles but only used as a reference. You recognise a token set is marked as source by the dot inside the checbox.
By ticking the checkbox you activate this set, meaning these tokens will get exposed to Figma. If you have multiple sets (e.g. a light and a dark theme) you can overwrite decisions that may have been defined in another set.
You can drag sets around to define their order. All active token sets get exposed and merged into one big token set, if some tokens have the exact same name and path, the latter one wins (e.g. if colors.foreground exists in both a light and a dark theme, the one thats visible later in the set list wins)