ReadonlyidThe unique identifier for this set, used only internally inside Penpot. This one is not exported or synced with external Design Token sources.
The name of the set. It may include a group path separated by /.
Indicates if the set is currently active.
ReadonlytokensThe tokens contained in this set, in alphabetical order.
ReadonlytokensThe tokens contained in this set, grouped by type.
Toggles the active status of this set.
Retrieves a token.
the id of the token.
Returns the token or undefined if not found.
Creates a new Token and adds it to the set.
Thetype of token.
Returns the created Token.
Adds to the catalog a new TokenSet equal to this one but with a new id.
Removes this set from the catalog.
A collection of Design Tokens.
Inside a set, tokens have an unique name, that will designate what token to use if the name is applied to a shape and this set is active.