@unocss/transformer-variant-group
TypeScript icon, indicating that this package has built-in type declarations

0.64.1 • Public • Published

@unocss/transformer-variant-group

Enables the variant group feature of Windi CSS for UnoCSS.

Install

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

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

Usage

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

Will be transformed to:

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

License

MIT License © 2021-PRESENT Anthony Fu

Package Sidebar

Install

npm i @unocss/transformer-variant-group

Weekly Downloads

199,001

Version

0.64.1

License

MIT

Unpacked Size

4.66 kB

Total Files

6

Last publish

Collaborators

  • unocss-bot
  • antfu