# class-variance-authority

> Class Variance Authority 🧬

Latest version **0.7.1** (published 2024-11-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install class-variance-authority
pnpm add class-variance-authority
yarn add class-variance-authority
bun add class-variance-authority
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.7.1 |
| Published | 2024-11-26 |
| First published | 2022-01-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6888 |
| Author | Joe Bell |
| Maintainers | joebell93 |
| Keywords | Class Variance Authority, class-variance-authority, classes, classname, classnames, css, cva, stitches, vanilla-extract, variants |

## Links

- npm: https://www.npmjs.com/package/class-variance-authority
- Repository: https://github.com/joe-bell/cva
- Homepage: https://github.com/joe-bell/cva#readme
- Issues: https://github.com/joe-bell/cva/issues
- Funding: https://polar.sh/cva
- npm.io page: https://npm.io/package/class-variance-authority

## Dependencies (1)

- [clsx](https://npm.io/package/clsx.md) ^2.1.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.7.1 (latest) — 2024-11-26
- 0.7.1-canary.2 (canary) — 2023-08-20
- 0.7.1-canary.1 — 2023-08-20
- 0.7.1-canary.0 — 2023-08-20
- 0.7.0 — 2023-07-17
- 0.6.1 — 2023-06-26
- 0.6.0 — 2023-04-27
- 0.6.0-canary.0 — 2023-04-27
- 0.5.3 — 2023-04-26
- 0.5.3-canary.0 — 2023-04-26
- 0.5.2 — 2023-04-11
- 0.5.1 — 2023-04-02
- 0.5.1-canary.0 — 2023-04-02
- 0.5.0 — 2023-04-02
- 0.4.0 — 2022-12-05
- … 12 more at https://npm.io/package/class-variance-authority/versions

## README

# class-variance-authority

For documentation, visit [cva.style](https://cva.style).

---
_Source: https://npm.io/package/class-variance-authority · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
