mirror of
https://github.com/penpot/penpot.git
synced 2026-07-01 20:05:26 +00:00
🐛 Fix description of TokenCatalog.addTheme in high-level overview (#10359)
Fixes #10074
This commit is contained in:
parent
5ef8d35683
commit
0270c2a90f
@ -345,7 +345,7 @@ The token library: `penpot.library.local.tokens` (type: `TokenCatalog`)
|
||||
* `sets: TokenSet[]` - Token collections (order matters for precedence)
|
||||
* `themes: TokenTheme[]` - Presets that activate specific sets
|
||||
* `addSet({name: string}): TokenSet` - Create new set
|
||||
* `addTheme(group: string, name: string): TokenTheme` - Create new theme
|
||||
* `addTheme({group: string, name: string}): TokenTheme` - Create new theme
|
||||
|
||||
`TokenSet` contains tokens with unique names:
|
||||
* `active: boolean` - Only active sets affect shapes; use `set.toggleActive()` to change: `if (!set.active) set.toggleActive();`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user