localhost_oa_front/unocss.config.ts

26 lines
657 B
TypeScript
Raw Permalink Normal View History

2024-02-27 17:22:27 +08:00
import {
transformerVariantGroup,
transformerDirectives,
presetAttributify,
defineConfig,
presetMini,
presetUno,
} from 'unocss';
// https://github.com/unocss/unocss#readme
export default defineConfig({
presets: [
presetMini({ dark: 'class' }),
// https://unocss.dev/presets/attributify#properties-conflicts
presetAttributify({ prefix: 'un-', prefixedOnly: true }),
presetUno(),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
shortcuts: {
'wh-full': 'w-full h-full',
'flex-ac': 'flex justify-around items-center',
'flex-bc': 'flex justify-between items-center',
},
theme: {},
});