unocss-transformer-directives-theme
v0.32.13-enhance-2
Published
UnoCSS transformer for `theme()` directive
Downloads
6
Readme
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