unocss-transformer-directives-theme
TypeScript icon, indicating that this package has built-in type declarations

0.32.13-enhance-2 • Public • Published

unocss-transformer-directives-theme

UnoCSS transformer for theme() directive

Install

npm i -D unocss-transformer-directives-theme
import Unocss from 'unocss/vite'
import transformerTheme from 'unocss-transformer-directives-theme'

Unocss({
  transformers: [
    transformerTheme(),
  ],
})

Usage

.custom-div {
  --un-custom-variable: theme('a.b.c');
}

License

MIT License

Package Sidebar

Install

npm i unocss-transformer-directives-theme

Weekly Downloads

4

Version

0.32.13-enhance-2

License

MIT

Unpacked Size

9.18 kB

Total Files

6

Last publish

Collaborators

  • fireloong