Repository navigation
Releases
v1.0.0-beta.12
Warning
Breaking Changes
The deprecated cva/utils entry point has now been removed. Move getSchema and GetSchema imports to cva/tools.
Use the cva-migrate Agent Skill to upgrade from cva@1.0.0-beta.0 through beta.11.
What's changed
-
New:
cva/tailwindcss💨An optional stylesheet of custom variants for Tailwind CSS, usable with or without
cva:@import "tailwindcss"; @import "cva/tailwindcss";
Prefix component defaults with
base:, such asbase:bg-blue-600, and ordinary utilities likebg-violet-600override them through the CSS cascade. No runtime class merging required. -
Deprecated
cva/utilsentry point removedcva/toolsis now the only home forgetSchemaandGetSchema. Update value imports, type imports, and re-exports that still usecva/utils. Full details. -
Docs improvements
The docs now show measured bundle sizes and weekly npm downloads, include a fallback for StackBlitz embeds, and credits @joe-bell's previous
cxlibrary in the project history.
Full changelog: v1.0.0-beta.11 → v1.0.0-beta.12
v1.0.0-beta.11
Warning
Breaking Changes
The deprecated APIs listed below have now been removed.
Use the cva-migrate Agent Skill to upgrade from cva@1.0.0-beta.0 through beta.10.
What's changed
-
Deprecated beta APIs removed
compose(a, b)→cva({ composes: [a, b] })defineConfigimported from"cva"→defineConfigimported from"cva/config"getSchemaimported from"cva"→getSchemaimported from"cva/tools"hooks→ a customcxwrapper
Move the matching type imports too.
Composehas no replacement, andcva/utilsremains as a deprecated alias. Full details. -
Smaller bundles
The minified, Brotli-compressedcvaentry dropped from 2,104 B to 1,624 B, a 23% reduction.cva/configdropped from 1,608 B to 1,412 B, a 12% reduction. -
Migration help and changelog links
The newcva-migrateAgent Skill covers upgrades from earlier betas, and every docs page now links to the release history. -
GitHub Sponsors ❤️
You can now finally sponsorcvavia GitHub Sponsors.
Full changelog: v1.0.0-beta.10 → v1.0.0-beta.11
v1.0.0-beta-10
What's changed
- Faster component calls ⚡︎
Up to 1200% faster in compound-variant benchmarks compared withclass-variance-authority. Configs are now read at creation: create a new component instead of mutating an existing config. Thanks @fveracoechea for inspiring this work! - Faster type checking ⚡︎
A 200-component test project checked 10% faster, with 26% fewer type instantiations compared with the previous beta. Full numbers. - Set up
cvawithcnin one command
runpnpm dlx shadcn@latest add joe-bell/cva/cn. See merging classes. Thanks @shadcn! - Updated import paths
UsedefineConfigfromcva/config, andgetSchema/GetSchemafromcva/tools. The old imports still work but are deprecated.
The next beta will likely remove the deprecated imports, so best to update your paths now!
Full changelog: v1.0.0-beta.9 → v1.0.0-beta.10
v1.0.0-beta.9
What's changed
Bring your own concatenator 🫛
The new cva/config entry point supports cn, tailwind-merge, clsx/lite, or your own concatenator, opening up more control over how classes are combined.
Warning
Custom concatenator support is very experimental. The API and behavior may change without warning as the feature evolves.
See merging classes for setup examples, or advanced concatenators for clsx/lite.
Upgrading
- TypeScript 6 or later is now required.
defineConfigmoves tocva/config;getSchemamoves tocva/utils. The old imports still work but are deprecated.- Configuration hooks are deprecated in favor of the new
cxoption.
See the migration notes.
Full changelog: v1.0.0-beta.8 → v1.0.0-beta.9
v1.0.0-beta.8
What's Changed
- feat(cva): introduce internal variants by @joe-bell in #382
Full Changelog: v1.0.0-beta.7...v1.0.0-beta.8
v1.0.0-beta.7
What's Changed
- build: migrate packages to tsdown, document build & release by @joe-bell in #385
- feat(ci): add performance benchmark CI with fork-safe sticky PR comments by @joe-bell in #378
- docs(bench): adopt clearer sticky comment benchmark layout by @joe-bell in #386
- Add maintenance-mode toolchain note for
class-variance-authorityby @joe-bell in #388
Full Changelog: v1.0.0-beta.6...v1.0.0-beta.7
v1.0.0-beta.6
v1.0.0-beta.5
What's Changed
Features
- Experimental
getSchemafunction andcomposesproperty (replacescomposefunction) by @joe-bell in #333
Clean-up
- Migrate
bundlesizetosize-limitby @mateothegreat in #346 - Spring Cleaning 2026 by @joe-bell in #358
- docs: add Deno to installation instructions by @bartlomieju in #360
- docs: expand AGENTS.md with architecture and workflow guidance by @joe-bell in #362
- docs: unify docs into a single versioned Starlight site by @joe-bell in #363
- refactor(docs): migrate docs/beta package to docs by @joe-bell in #364
- refactor(docs): replace inline styles with Tailwind v4 utilities by @joe-bell in #366
- feat(docs): migrate hosting from Vercel to Cloudflare Workers by @joe-bell in #365
- chore: syncpack clean-up by @joe-bell in #367
- fix(docs): replace deprecated Zod 4 APIs in tutorials schema by @joe-bell in #368
- Upgrade Node.js to 24 and migrate syncpack config by @joe-bell in #369
- docs: document Cloudflare Workers Builds deployment setup by @joe-bell in #370
- Reorder redirects to optimize Cloudflare performance warnings by @joe-bell in #371
- fix(docs): redirect cross-version page gaps to version home by @joe-bell in #372
- docs(agents): make the guide self-improving by @joe-bell in #373
- Add agent skills and MCP server configuration by @joe-bell in #374
- Add deslop skill for cleaning up AI-generated code by @joe-bell in #375
- Annotate lint-staged config with Configuration type by @joe-bell in #376
- Clarify pre-commit hook policy and setup for agents by @joe-bell in #377
New Contributors
- @mateothegreat made their first contribution in #346
- @bartlomieju made their first contribution in #360
Full Changelog: v1.0.0-beta.4...v1.0.0-beta.5
v1.0.0-beta.4
What's Changed
- docs: Update intellisense regex to handle inner brackets by @longzheng in #332
- docs: migrate from classregex to classfunctions by @yutakobayashidev in #341
- docs: missing comma by @zambo in #334
- fix: types field should appear first in the exports section by @ryanelian in #343
New Contributors
- @longzheng made their first contribution in #332
- @yutakobayashidev made their first contribution in #341
- @zambo made their first contribution in #334
- @ryanelian made their first contribution in #343
Full Changelog: v1.0.0-beta.3...v1.0.0-beta.4
v1.0.0-beta.3
What's Changed
- Extend Component Documentation by @joe-bell in #176
- docs: Update IntelliSense for WebStorm in latest doc by @evan-liu in #323
- Include
bigintwithinClassValue, exportClass*types by @joe-bell in #328 - Loosen TypeScript dependency range by @joe-bell in #329
- Upgrade Project Dependencies by @joe-bell in #330
- Add
@arethetypeswrong/clito check for faulty exports by @joe-bell in #331
New Contributors
Full Changelog: v1.0.0-beta.2...v1.0.0-beta.3