ReadonlyidThe unique identifier for this token, used only internally inside Penpot. This one is not exported or synced with external Design Token sources.
The name of the token. It may include a group path separated by ..
An optional description text.
ReadonlyresolvedThe value calculated by finding all tokens with the same name in active sets and resolving the references.
It's converted to string, regardless of the data type of the value depending on the token type. It can be undefined if no value has been found in active sets.
Adds to the set that contains this Token a new one equal to this one but with a new id.
Removes this token from the catalog.
It will NOT be unapplied from any shape, since there may be other tokens with the same name.
Applies this token to one or more properties of the given shapes.
is an array of shapes to apply it.
an optional list of property names. If omitted, the default properties will be applied.
NOTE that the tokens application is by name and not by id. If there exist several tokens with the same name in different sets, the actual token applied and the value set to the attributes will depend on which sets are active (and will change if different sets or themes are activated later).
Applies this token to the currently selected shapes.
Parameters and warnings are the same as above.
Represents the base properties and methods of a Design Token in Penpot, shared by all token types.