You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
661 B
JavaScript

1 month ago
import {
defineConfig,
presetAttributify,
presetUno,
transformerDirectives,
transformerVariantGroup,
} from "unocss";
export default defineConfig({
presets: [presetAttributify(), presetUno()],
transformers: [
// 启用 @apply 功能
transformerDirectives(),
// 启用 () 分组功能
// 支持css class组合eg: `<div class="hover:(bg-gray-400 font-medium) font-(light mono)">测试 unocss</div>`
transformerVariantGroup(),
// Don't change the following order
// transformerAttributify({
// // 解决与第三方框架样式冲突问题
// prefixedOnly: true,
// prefix: "fg",
// }),
],
});