Token Groups
Last updated
Was this helpful?
Last updated
Was this helpful?
The token group defines one logical group of , , , or any other . Each token group always contains only one type of token that corresponds with it.
This is what the payload of one group looks like:
Token groups form a tree of dependencies. There is always one root of the tree representing one type of token, such as Color
. When a group has subgroups, the payload will look like this:
Because the tree can only be constructed with groups and tokens of the same type, the type of all groups and tokens in one tree will be the same as the type of root group.
You can use the following functions to retrieve token groups from your design system: