talira

Compare

Tailwind VariantsClass Variance Authority
What it isA first-class variant API for Tailwind CSSA tiny library for building type-safe, variant-driven class names with Tailwind CSS or any other styling approach
KindOpen sourceOpen source
Trust0.530.70
Stars33356917
Last commit2026-11-102026-11-23
LicenceMITApache-2.0
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostableYesYes
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanyHeroUIJoe Bell
Features
  • variants, default variants and compound variants for Tailwind classes
  • slots for multi-part components
  • extend and compose recipes
  • built-in conflict resolution for Tailwind classes, or a lite build without it
  • typed props inferred with VariantProps
  • responsive classes with breakpoint prefixes
  • global configuration for design system defaults
  • framework-agnostic: works with any UI framework
  • All 9 features
  • variants, default variants and compound variants that resolve to class names
  • TypeScript types for variant props
  • works with Tailwind CSS, plain CSS, BEM and CSS Modules
  • examples for React, Vue, Svelte, Astro and 11ty
  • extending and composing components; first-class composition with composes in the 1.0 beta
  • llms.txt and Markdown copies of the docs