-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathuno.config.ts
More file actions
34 lines (33 loc) · 822 Bytes
/
uno.config.ts
File metadata and controls
34 lines (33 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
transformerDirectives,
transformerVariantGroup
} from "unocss";
export default defineConfig({
presets: [
presetUno({
dark: {
dark: '[theme-mode="dark"]'
}
}), // 必须先引入这个,其他 preset 才能生效
presetAttributify(),
presetIcons({
warn: true // 当找不到图标时发出警告
})
],
transformers: [transformerDirectives(), transformerVariantGroup()],
content: {
pipeline: {
include: ["src/**/*.{ts,tsx}"]
}
},
shortcuts: [
["flex-start", "flex justify-start items-center"],
["flex-center", "flex justify-center items-center"],
["flex-between", "flex justify-between items-center"],
["flex-end", "flex justify-end items-center"]
]
});