@theme-kit/tailwind
v1.3.0
Published
Tailwind CSS v4 plugin that maps Theme Kit tokens to Tailwind theme variables.
Maintainers
Readme
@theme-kit/tailwind
Tailwind CSS v4 integration that maps every semantic token to utilities and @theme variables.
Reference snippet
@import "tailwindcss";
@import "@theme-kit/tailwind";
body {
@apply bg-background text-foreground;
}
.card {
@apply bg-card text-card-foreground border-border;
}
.btn-primary {
@apply bg-primary text-primary-foreground;
}Integration
@import "@theme-kit/tailwind"maps tokens to--color-*,--radius-*,--spacing-*,--font-*,--shadow-*@themevariables.- Dark mode via
@custom-variant dark (&:where(.dark, .dark *))— scoped to the.darkclass Theme Kit maintains. synchronizeDarkClass(theme)keeps the.darkclass in sync with the active theme.- Ships
theme.css,dark.cssandpreflight.csslayers.
Documentation
Full API reference and guides: Theme Kit docs. All packages: npm.
