@unocss/transformer-variant-group
v0.64.1
Published
Variant group transformer for UnoCSS
Downloads
825,396
Readme
@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