-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuno.config.ts
60 lines (58 loc) · 1.18 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
import presetTheme from "unocss-preset-theme";
import {
defineConfig,
presetIcons,
presetAttributify,
presetWebFonts,
presetUno,
} from "unocss";
export default defineConfig({
presets: [
presetUno(),
presetAttributify(),
presetWebFonts({
provider: "fontshare",
fonts: {
sans: "Satoshi",
},
}),
presetIcons({
collections: {
ant: () =>
import("@iconify-json/ant-design/icons.json").then((i) => i.default),
},
}),
presetTheme({
theme: {
dark: {
colors: {
text: "#feffe5",
background: "#0a0900",
primary: "#fff01f",
secondary: "#27261b",
accent: "#ff3d40",
},
},
},
}) as any,
],
theme: {
colors: {
text: "#0a0900",
background: "#feffe5",
primary: "#e0d100",
secondary: "#e4e3d8",
accent: "#c20003",
},
},
safelist: [
// Potential solution to dynamically set icons
"i-ant-caret-up-filled",
"i-ant-caret-left-filled",
"i-ant-caret-down-filled",
"i-ant-caret-right-filled",
"opacity-25",
"text-background",
"bg-primary",
],
});