# @unocss/transformer-variant-group

> Variant group transformer for UnoCSS

Latest version **66.10.5** (published 2026-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @unocss/transformer-variant-group
pnpm add @unocss/transformer-variant-group
yarn add @unocss/transformer-variant-group
bun add @unocss/transformer-variant-group
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 66.10.5 |
| Published | 2026-09-16 |
| First published | 2022-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 18965 |
| Author | Anthony Fu <anthonyfu117@hotmail.com> |
| Maintainers | antfu, unocss-bot, zyyv |
| Keywords | unocss, unocss-transformer |

## Links

- npm: https://www.npmjs.com/package/@unocss/transformer-variant-group
- Repository: https://github.com/unocss/unocss
- Homepage: https://unocss.dev
- Issues: https://github.com/unocss/unocss/issues
- Funding: https://github.com/sponsors/antfu
- npm.io page: https://npm.io/package/@unocss/transformer-variant-group

## Dependencies (1)

- [@unocss/core](https://npm.io/package/@unocss/core.md) 66.10.5

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 66.10.5 (latest) — 2026-09-16
- 66.10.4 — 2026-09-15
- 66.10.3 — 2026-09-15
- 66.10.2 — 2026-09-11
- 66.10.1 — 2026-09-09
- 66.10.0 — 2026-09-04
- 66.9.2 — 2026-09-02
- 66.9.1 — 2026-09-01
- 66.8.1 — 2026-08-21
- 66.8.0 — 2026-08-19
- 66.8.0-beta.1 — 2026-08-19
- 66.7.5 — 2026-07-07
- 66.7.4 — 2026-06-29
- 66.7.4-beta.1 — 2026-06-29
- 66.7.3 — 2026-06-26
- … 326 more at https://npm.io/package/@unocss/transformer-variant-group/versions

## README

# @unocss/transformer-variant-group

<!-- @unocss-ignore -->

Enables the [variant group feature of Windi CSS](https://windicss.org/features/variant-groups.html) for UnoCSS.

## Install

```bash
npm i -D @unocss/transformer-variant-group
```

```ts
import transformerVariantGroup from '@unocss/transformer-variant-group'
// uno.config.ts
import { defineConfig } from 'unocss'

export default defineConfig({
  // ...
  transformers: [
    transformerVariantGroup(),
  ],
})
```

## Usage

```html
<div class="hover:(bg-gray-400 font-medium) font-(light mono)" />
```

Will be transformed to:

```html
<div class="hover:bg-gray-400 hover:font-medium font-light font-mono" />
```

## License

MIT License &copy; 2021-PRESENT [Anthony Fu](https://github.com/antfu)

---
_Source: https://npm.io/package/@unocss/transformer-variant-group · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
