talira

Compare

Class Variance AuthorityTailwind Variants
What it isA tiny library for building type-safe, variant-driven class names with Tailwind CSS or any other styling approachA first-class variant API for Tailwind CSS
KindOpen sourceOpen source
Trust0.700.53
Stars69173335
Last commit2026-11-232026-11-10
LicenceApache-2.0MIT
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostableYesYes
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanyJoe BellHeroUI
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
  • 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