-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathuno.config.ts
39 lines (37 loc) · 1.09 KB
/
uno.config.ts
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
35
36
37
38
39
import { defineConfig } from "unocss";
import presetAttributify from "@unocss/preset-attributify";
import presetIcons from "@unocss/preset-icons";
import presetUno from "@unocss/preset-uno";
import transformerDirectives from "@unocss/transformer-directives";
import transformerVariantGroup from "@unocss/transformer-variant-group";
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"]
],
theme: {
colors: {
'td-brand': '#5BC25E',
'td-brand-dark': '#36a541'
},
},
});