Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cvb

gperdomor2.7kMIT1.1.2TypeScript support: included

Class Variance Builder 👷🏼

Class Varince Builder, class-variance-builder, Slot Varince Builder, slot-variance-builder, cvb, svb, classes, classname, classnames, css, cva, stitches, vanilla-extract, variants, tailwind-variants, panda, pandacss

readme

cvb

This library was generated with Nx.

Building

Run nx build cvb to build the library.

Running unit tests

Run nx test cvb to execute the unit tests via Vitest.

changelog

1.1.2 (2025-05-25)

🩹 Fixes

  • cvb: expose ClassDictionary, ClassValue and ClassProp types (08c591f)

❤️ Thank You

  • Gustavo Perdomo

1.1.1 (2025-05-25)

🩹 Fixes

  • cvb: removed development entry from package.json exports field (c35e5c8)

❤️ Thank You

  • Gustavo Perdomo

1.1.0 (2025-05-23)

🚀 Features

  • cvb: added provenance support (132981f)
  • website: improve output for large language models (22560cb)
  • website: updated layout files (89e1625)

🩹 Fixes

  • fix earlier return when variants is undefined (0f47d75)
  • deps: bump fumadocs monorepo (#60)
  • deps: bump nextjs monorepo from 15.2.4 to v15.3.0 (#66)
  • deps: bump @icons-pack/react-simple-icons from 12.4.0 to v12.5.0 (#64)
  • deps: bump react monorepo (#35)
  • deps: bump @icons-pack/react-simple-icons from 12.5.0 to v12.8.0 (3e2601e)
  • deps: bump lucide-react from 0.487.0 to v0.510.0 (03ff3e4)
  • deps: bump zod from 3.24.2 to v3.24.4 (#91)
  • deps: bump zod from 3.24.4 to v3.25.17 (#98)
  • deps: bump lucide-react from 0.510.0 to v0.511.0 (#83)
  • deps: bump fumadocs monorepo (#67)
  • deps: bump fumadocs monorepo (#99)
  • deps: bump nextjs monorepo from 15.2.4 to v15.3.2 (3f7083a)
  • website: rollback next 15.3 (29049f1)

🏡 Chore

  • update to nx 21.1.0 (cad4226)
  • move to pnpm as package manager (8befccd)
  • move to pnpm as package manager (89b0eac)
  • move to pnpm as package manager (934bde2)
  • move to pnpm as package manager (870973d)
  • added bundle analyzer support (9669ffd)
  • deps: bump tailwindcss monorepo from 4.1.1 to v4.1.3 (#45)
  • deps: bump vite from 6.2.5 to v6.2.6 [security] (#57)
  • deps: bump eslint monorepo from 9.23.0 to v9.24.0 (#49)
  • deps: bump estree-util-value-to-estree (#61)
  • deps: bump tailwind-merge from 3.1.0 to v3.2.0 (#63)
  • deps: bump actions/setup-node action from v3 to v4 (#62)
  • deps: bump lint-staged from 15.5.0 to v15.5.1 (#52)
  • deps: bump typescript from 5.7.3 to v5.8.3 (#32)
  • deps: bump react monorepo (#68)
  • deps: bump eslint-plugin-react from 7.35.0 to v7.37.5 (#31)
  • deps: bump @types/node from 18.16.9 to v18.19.86 (cbe556f)
  • deps: bump typescript-eslint from 8.29.0 to v8.29.1 (e8b0199)
  • deps: bump nx monorepo from 20.7.2 to v21.0.3 (#80)
  • deps: bump commitlint monorepo from 19.8.0 to v19.8.1 (e1b7534)
  • deps: bump lint-staged from 15.5.1 to v16 (a5ceb8a)
  • deps: bump tailwindcss monorepo from 4.1.3 to v4.1.6 (4d78bdf)
  • deps: bump @eslint/compat from 1.2.8 to v1.2.9 (e42d830)
  • deps: bump vitest monorepo from 3.1.1 to v3.1.3 (f703353)
  • deps: bump tailwind-merge from 3.2.0 to v3.3.0 (9fa6284)
  • deps: bump vite-plugin-dts from 4.5.3 to v4.5.4 (e82b37a)
  • deps: bump vitest monorepo from 3.1.3 to v3.1.4 (8cc873a)
  • deps: bump eslint-config-prettier from 10.1.1 to v10.1.5 (7ca2cfa)
  • deps: bump typescript-eslint from 8.29.1 to v8.32.1 (90c4753)
  • deps: bump eslint monorepo from 9.24.0 to v9.26.0 (#87)
  • deps: bump eslint monorepo from 9.26.0 to v9.27.0 (#95)
  • deps: bump tailwindcss monorepo from 4.1.6 to v4.1.7 (#82)
  • deps: bump vite from 6.2.6 to v6.2.7 [security] (#77)
  • deps: bump vite from 6.2.7 to v6.3.5 (#96)
  • source: improved commitlint config and validation scripts (5614f68)

❤️ Thank You

  • Gustavo Perdomo

1.0.0 (2025-04-12)

🚀 Features

  • cvb: expose raw configuration in recipes (#20)
  • docs: initial docs (#17)
  • nx-cloud: setup nx cloud workspace (#42)
  • website: added logo (#22)
  • website: added logo (#23)
  • website: added vercel analytics (#25)
  • website: added vercel speed insights (3a409bf)
  • website: fix OG image urls (69dc80c)
  • website: improve metadata (#26)
  • website: added benchmark docs (#44)

🩹 Fixes

  • solve override logic for svg function (#18)
  • cvb: fixed lint (3f06b48)
  • website: fixed website build (dffbec0)

🔥 Performance

  • cvb: remove raw exposure to increase performance (#39)
  • cvb: fix componition benchmark names (#41)

❤️ Thank You

  • Gustavo Perdomo

1.0.0-beta.4 (2025-02-12)

🚀 Features

  • cvb: added default to package.json exports (23bfa9e)

🩹 Fixes

  • cvb: improve csj and esm support (d767090)

❤️ Thank You

  • Gustavo Perdomo

1.0.0-beta.3 (2025-02-03)

🚀 Features

  • cvb: added CommonJS support (#13)

❤️ Thank You

  • Gustavo Perdomo

1.0.0-beta.2 (2025-02-03)

🚀 Features

  • added commitizen and husky (#6)
  • update readme (#11)
  • cvb: added initial cvb library implementation (c8d5290)
  • cvb: rebranded npm package from @gperdomor/cvb to cvb (#8)
  • website: added initial website for docs (#10)
  • website: adding coming soon landing page (#12)

❤️ Thank You

  • Gustavo Perdomo

1.0.0-beta.1 (2025-01-06)

🚀 Features

  • cvb: added initial cvb library implementation (c8d5290)

❤️ Thank You

  • Gustavo Perdomo