Tailwind CSS
@theme-kit/tailwind
Tailwind v4Tokens4 exports
Tailwind CSS v4 mappings from theme tokens to utility variables.
Installation
Install the integration alongside @theme-kit/core.
pnpm add @theme-kit/tailwindQuick Start
Complete copy-paste usage for this package.
@import "tailwindcss";
@import "@theme-kit/tailwind";API Reference
Curated highlights below. The complete generated reference — every signature, parameter and type — is at /api-reference/tailwind.
CSS
| Export | Description |
|---|---|
@theme mapping | Maps tokens to --color-*, --radius-*, --spacing-*, --font-*, --shadow-*. |
Dark variant | @custom-variant dark (&:where(.dark, .dark *)). |
Layers | theme.css / dark.css / preflight.css. |
Helpers
| Export | Description |
|---|---|
synchronizeDarkClass(theme) | Keeps the .dark class in sync. |