-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
48 lines (47 loc) · 1.06 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
import transformerDirectives from "@unocss/transformer-directives"
import {
defineConfig,
presetAttributify,
presetTypography,
presetUno,
presetWind
} from "unocss"
export default defineConfig({
presets: [
presetWind(),
presetUno(),
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"
}
},
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"
]
})