API reference
defineVars
Define static CSS variables to use across themes and components.
The defineVars
function defines static CSS variables that are available globally and can be reused across defineTheme()
or create()
.
Use it to create semantic tokens like colors, spacing, or any design values that are consistent across your design system.
🎯 Example: Creating tokens
These variables will be accessible in your theme or styles via tokens.white, tokens.textPrimary, etc.