Skip to main content
Vuetify0 is now in alpha!
Vuetify0 Logo
Theme
Mode
Palettes
Accessibility
Vuetify One
Sign in to Vuetify One

Access premium tools across the Vuetify ecosystem — Bin, Play, Studio, and more.

Not a subscriber? See what's included

createTokens API

API reference for the createTokens composable.

Explore these related pages for additional context and usage patterns.

PageCategory
createTokensRegistration
ThemeProviders
createRegistryRegistration
useThemePlugins
ThemingFeatures

Functions

createTokens

(tokens?: TokenCollection, options?: TokenOptions) => E

Creates a new token instance.

createTokensContext

(_options: TokenContextOptions) => ContextTrinity<E>

Creates a new token context.

useTokens

(namespace?: string) => E

Returns the current tokens instance.

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.

Was this page helpful?

© 2016-1970 Vuetify, LLC
Ctrl+/