2022-05-07 11:26:04 +08:00
|
|
|
import {
|
|
|
|
transformerVariantGroup,
|
|
|
|
transformerDirectives,
|
|
|
|
presetAttributify,
|
|
|
|
defineConfig,
|
|
|
|
presetMini,
|
|
|
|
presetUno
|
|
|
|
} from "unocss";
|
|
|
|
|
|
|
|
// https://github.com/unocss/unocss#readme
|
|
|
|
export default defineConfig({
|
|
|
|
presets: [presetMini({ dark: "class" }), presetAttributify(), presetUno()],
|
|
|
|
transformers: [transformerDirectives(), transformerVariantGroup()],
|
|
|
|
exclude: [`${__dirname}/node_modules/**/*`],
|
2022-05-11 15:25:01 +08:00
|
|
|
shortcuts: {
|
|
|
|
"wh-full": "w-full h-full",
|
|
|
|
"flex-ac": "flex justify-around items-center",
|
|
|
|
"flex-bc": "flex justify-between items-center"
|
|
|
|
},
|
2022-05-07 11:26:04 +08:00
|
|
|
theme: {}
|
|
|
|
});
|