-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathuno.config.ts
62 lines (61 loc) · 1.34 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import transformerDirectives from "@unocss/transformer-directives"
import { presetOnu } from "onu-ui"
import {
defineConfig,
presetAttributify,
presetTypography,
presetUno,
presetWind
} from "unocss"
export default defineConfig({
presets: [
presetWind(),
presetUno(),
presetOnu(),
presetAttributify({
prefix: "un-",
prefixedOnly: true // <--
}),
presetTypography()
],
rules: [
[/^size-\[?([^[\]]+)\]?/, ([, value]) => ({ width: value, height: value })],
[/^font-family-(.+)/, ([, value]) => ({ "font-family": value })],
[/^font-size-(.+)/, ([, value]) => ({ "font-size": value })]
],
transformers: [transformerDirectives()],
theme: {
breakpoints: {
sm: "600px",
md: "1024px",
lg: "1440px",
xl: "1920px"
},
colors: {
sakura: "#f27fb5",
sakura2: "#f3d3e2",
sakura3: "#f8c1d5",
sakura4: "#fbe0ef"
}
},
safelist: [
..."overflow-y-scroll flex-shrink-1 mt-2 text-#eee text-opacity-70".split(
" "
),
"text-weight-medium",
"max-w-60%",
"text-20px",
"!overflow-scroll",
..."relative top-0 left-1/2".split(" "),
"text-blue-400",
"bg-blue-400",
"bg-gray-700",
"rounded-30px",
"text-sakura",
"bg-sakura",
"text-sakura3",
"bg-sakura3",
"text-sakura4",
"bg-sakura4"
]
})