API Reference
@theme-kit/tailwind
Tailwind CSS v4 mappings from theme tokens to utility variables.
Functions
createTailwindPlugin(options?): { name: string }
| Parameter | Type | Description |
|---|---|---|
options | TailwindPluginOptions (optional) | — |
Returns { name: string }
synchronizeDarkClass(theme): void
| Parameter | Type | Description |
|---|---|---|
theme | { meta?: { mode?: string } } | — |
Returns void
Interfaces
TailwindPluginOptions
| Member | Type | Description |
|---|---|---|
defaultTheme (optional) | string | — |
themes (optional) | readonly ThemeDefinition<string>[] | — |
Variables
themeCSS
"/* Theme CSS is available at ./theme.css */"