ReadonlythemesThe list of themes in this catalog, in creation order.
ReadonlysetsThe list of sets in this catalog, in the order defined by the user. The order is important because then same token name exists in several active sets, the latter has precedence.
Creates a new TokenTheme and adds it to the catalog.
The group name of the theme (can be empty string).
Returns the created TokenTheme.
Creates a new TokenSet and adds it to the catalog.
The name of the set (required). It may contain
a group path, separated by /.
Returns the created TokenSet.
Retrieves a theme.
the id of the theme.
Returns the theme or undefined if not found.
Retrieves a set.
the id of the set.
Returns the set or undefined if not found.
The collection of all tokens in a Penpot file's library.
Tokens are contained in sets, that can be marked as active or inactive to control the resolved value of the tokens.
The active status of sets can be handled by presets named Themes.