createTokens API
API reference for the createTokens composable.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| createTokens | Registration |
| Theme | Providers |
| createRegistry | Registration |
| useTheme | Plugins |
| Theming | Features |
Functions
flatten
(tokens: TokenCollection, prefix?: string, flat?: boolean) => FlatTokenCollection[]Flattens a nested collection of tokens into a flat array of tokens. Each token is represented by an object containing its ID & value.