Skip to content

Tailwind CSS

@theme-kit/tailwind

Tailwind v4Tokens4 exports

Tailwind CSS v4 mappings from theme tokens to utility variables.

Install the integration alongside @theme-kit/core.

bash
pnpm add @theme-kit/tailwind

Quick Start

Complete copy-paste usage for this package.

globals.css
css
@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

ExportDescription
@theme mappingMaps tokens to --color-*, --radius-*, --spacing-*, --font-*, --shadow-*.
Dark variant@custom-variant dark (&:where(.dark, .dark *)).
Layerstheme.css / dark.css / preflight.css.

Helpers

ExportDescription
synchronizeDarkClass(theme)Keeps the .dark class in sync.
@theme-kit/tailwind — Theme Kit