🐛 Fix description of TokenCatalog.addTheme in high-level overview (#10359)

Fixes #10074
This commit is contained in:
Dr. Dominik Jain 2026-06-24 10:27:28 +02:00 committed by GitHub
parent 5ef8d35683
commit 0270c2a90f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();`