44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import UnoCSS from 'unocss/vite'
|
|||
|
|
import { presetAttributify, presetUno } from 'unocss'
|
||
|
|
import transformerDirectives from '@unocss/transformer-directives'
|
||
|
|
import transformerVariantGroup from '@unocss/transformer-variant-group'
|
||
|
|
import transformerCompileClass from '@unocss/transformer-compile-class'
|
||
|
|
//import { presetScrollbarHide } from 'unocss-preset-scrollbar-hide'
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @see https://github.com/unocss/unocss
|
||
|
|
*/
|
||
|
|
export default UnoCSS({
|
||
|
|
presets: [
|
||
|
|
/**
|
||
|
|
* @see https://github.com/unocss/unocss/tree/main/packages/preset-attributify
|
||
|
|
*/
|
||
|
|
presetAttributify({
|
||
|
|
/* preset options */
|
||
|
|
}),
|
||
|
|
/**
|
||
|
|
* @see https://github.com/unocss/unocss/tree/main/packages/preset-uno
|
||
|
|
*/
|
||
|
|
presetUno()
|
||
|
|
/**
|
||
|
|
* @see https://github.com/reslear/unocss-preset-scrollbar-hide
|
||
|
|
*/
|
||
|
|
//presetScrollbarHide()
|
||
|
|
// ...custom presets
|
||
|
|
],
|
||
|
|
transformers: [
|
||
|
|
/**
|
||
|
|
* @see https://github.com/unocss/unocss/tree/main/packages/transformer-directives
|
||
|
|
*/
|
||
|
|
transformerDirectives(),
|
||
|
|
/**
|
||
|
|
* @see https://github.com/unocss/unocss/tree/main/packages/transformer-variant-group
|
||
|
|
*/
|
||
|
|
transformerVariantGroup(),
|
||
|
|
/**
|
||
|
|
* @see https://github.com/unocss/unocss/tree/main/packages/transformer-compile-class/
|
||
|
|
*/
|
||
|
|
transformerCompileClass()
|
||
|
|
]
|
||
|
|
})
|