first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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"
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user