ReadonlyidThe unique identifier for this theme, used only internally inside Penpot. This one is not exported or synced with external Design Token sources.
ReadonlyexternalOptional identifier that may exists if the theme was imported from an external tool that uses ids in the json file.
The group name of the theme. Can be empt string.
The name of the theme.
Indicates if the theme is currently active.
The sets that will be activated if this theme is activated.
Toggles the active status of this theme.
Adds to the catalog a new TokenTheme equal to this one but with a new id.
Removes this theme from the catalog.
A preset of active TokenSets.
A theme contains a list of references to TokenSets. When the theme is activated, it sets are activated too. This will not deactivate sets that are not in this theme, because they may have been activated by other themes.
Themes may be gruped. At any time only one of the themes in a group may be active. But there may be active themes in other groups. This allows to define multiple "axis" for theming (e.g. color scheme, density or brand).
When a TokenSet is activated or deactivated directly, all themes are disabled (indicating that now there is a "custom" manual theme active).