Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lvjiaxuan/unocss-transformer-attribute-values-group

Attribute values group transformer for UnoCSS.
https://github.com/lvjiaxuan/unocss-transformer-attribute-values-group

unocss unocss-transformer

Last synced: 17 days ago
JSON representation

Attribute values group transformer for UnoCSS.

Awesome Lists containing this project

README

        

[![npm](https://img.shields.io/npm/v/unocss-transformer-attribute-values-group)](https://www.npmjs.com/package/unocss-transformer-attribute-values-group)

# Installation

```sh
pnpm add -D unocss-transformer-attribute-values-group
```

# Usage

```ts
// uno.config.ts
import { defineConfig } from 'unocss'
import transformerAttrValuesGroup from 'unocss-transformer-attribute-values-group'

export default defineConfig({
transformers: [
transformerAttrValuesGroup,
],
})
```

```vue


```

transformed like:
```html


```

[tests](https://github.com/lvjiaxuan/unocss-transformer-attribute-values-group/blob/main/test/index.test.ts) for more usages.

# References

- [using-arbitrary-variants](https://tailwindcss.com/docs/hover-focus-and-other-states#using-arbitrary-variants)
- [the better arbitrary-variants of unocss](https://github.com/unocss/unocss/blob/main/packages/preset-mini/src/_variants/misc.ts#L75)