vue3-h5-quark-template/unocss.config.ts
2024-08-30 23:09:59 +08:00

21 lines
567 B
TypeScript

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