heroui-inc/tailwind-variants
🦄 Tailwindcss first-class variant API observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 98
- Release rhythm 96
- Longevity 94
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 14
- age_days: 1329
- days_rel: 30
- days_push: 15
- n_releases_24m: 14
Adoption not part of the score
3292 stars · 88 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Tailwind Variants is a TypeScript library providing a first-class variant API on top of Tailwind CSS, letting you define typed component recipes with base styles, variants, slots, compound rules, and defaults. It includes built-in Tailwind class conflict resolution, is framework-agnostic, and offers a lite build for smaller bundles.
Use cases
- manage tailwind css variants for ui components
- build a typed design system with tailwind
- merge conflicting tailwind classes automatically
- style multi-part components with slots
- create compound variant styles in tailwind
- replace cva with a fully typed variant api
When to choose
- you use Tailwind CSS and want Stitches-style variants with full TypeScript inference
- you need slots and compound variants for multi-part components
- you want built-in class conflict resolution without installing tailwind-merge separately
- you need a framework-agnostic styling utility that works with React, Vue, Svelte, or plain JS
When to avoid
- you don't use Tailwind CSS for styling
- you need responsive variant generation with Tailwind v4, which no longer supports config transforms
- you want a full CSS-in-JS solution with runtime style objects rather than class strings
- bundle size is critical and you can't accept even the lite build's overhead
Facets
library · maturity active
ui-components css-framework state-management frontend web-development web-design developer-tools browser cross-platform tailwindcss variants design-systems class-merging typescript component-recipes slots framework-agnostic nodejs web-server
5 sources
- readme: https://github.com/heroui-inc/tailwind-variants · fetched 2026-08-28 · 3bc1d39f3fe2
- homepage: https://tailwind-variants.org · fetched 2026-08-29 · df8cb02bd11f
- site_page: https://www.tailwind-variants.org/docs/introduction · fetched 2026-08-29 · dfcb9cc82848
- site_page: https://www.tailwind-variants.org/docs/variants · fetched 2026-08-29 · 081116ae2cee
- registry_npm: https://registry.npmjs.org/tailwind-variants · fetched 2026-08-29 · 98613b412587
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| heroui-inc/tailwind-variants | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="heroui-inc/tailwind-variants")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem