Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-22 03:49:19 +08:00
v3-admin-vite/uno.config.ts
2025-02-12 14:05:27 +08:00

26 lines
577 B
TypeScript

import { defineConfig, presetAttributify, presetUno } from "unocss"
export default defineConfig({
// 预设
presets: [
// 属性化模式 & 无值的属性模式
presetAttributify({
prefix: "un-",
prefixedOnly: false
}),
// 默认预设
presetUno({
important: "#app"
})
],
// 自定义规则
rules: [],
// 自定义快捷方式
shortcuts: {
"wh-full": "w-full h-full",
"flex-center": "flex justify-center items-center",
"flex-x-center": "flex justify-center",
"flex-y-center": "flex items-center"
}
})