-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
104 lines (103 loc) · 2.97 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import {
defineConfig,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from "unocss";
import presetAnimations from "unocss-preset-animations";
export default defineConfig({
transformers: [transformerDirectives(), transformerVariantGroup()],
presets: [
presetAnimations(),
presetUno({ dark: "class" }),
presetWebFonts({
provider: "none",
fonts: {
sans: "IBM Plex Sans",
mono: "IBM Plex Mono",
title: ["Chillax", "system-ui", "sans-serif"],
},
}),
],
theme: {
colors: {
border: "color(display-p3 var(--border))",
input: "color(display-p3 var(--input))",
ring: {
DEFAULT: "color(display-p3 var(--ring))",
alt: "color(display-p3 var(--ring-alt))",
},
background: "color(display-p3 var(--background))",
foreground: "color(display-p3 var(--foreground))",
shadow: "color(display-p3 var(--shadow))",
primary: {
DEFAULT: "color(display-p3 var(--primary))",
hover: "color(display-p3 var(--primary-hover))",
foreground: "color(display-p3 var(--primary-foreground))",
},
secondary: {
DEFAULT: "color(display-p3 var(--secondary))",
hover: "color(display-p3 var(--secondary-hover))",
foreground: "color(display-p3 var(--secondary-foreground))",
},
destructive: {
DEFAULT: "color(display-p3 var(--destructive))",
hover: "color(display-p3 var(--destructive-hover))",
foreground: "color(display-p3 var(--destructive-foreground))",
},
muted: {
DEFAULT: "color(display-p3 var(--muted))",
foreground: "color(display-p3 var(--muted-foreground))",
},
accent: {
DEFAULT: "color(display-p3 var(--accent))",
foreground: "color(display-p3 var(--accent-foreground))",
},
popover: {
DEFAULT: "color(display-p3 var(--popover))",
foreground: "color(display-p3 var(--popover-foreground))",
},
card: {
DEFAULT: "color(display-p3 var(--card))",
foreground: "color(display-p3 var(--card-foreground))",
},
amber: {
10: "color(display-p3 var(--amber-10))",
},
orange: {
11: "color(display-p3 var(--orange-11))",
12: "color(display-p3 var(--orange-12))",
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
animation: {
keyframes: {
"accordion-down":
"{ from { height: 0 } to { height: var(--kb-accordion-content-height) } }",
"accordion-up":
"{ from { height: var(--kb-accordion-content-height) } to { height: 0 } }",
"collapsible-down":
"{ from { height: 0 } to { height: var(--kb-collapsible-content-height) } }",
"collapsible-up":
"{ from { height: var(--kb-collapsible-content-height) } to { height: 0 } }",
},
timingFns: {
"accordion-down": "ease-out",
"accordion-up": "ease-out",
"collapsible-down": "ease-out",
"collapsible-up": "ease-out",
},
durations: {
"accordion-down": "0.2s",
"accordion-up": "0.2s",
"collapsible-down": "0.4s",
"collapsible-up": "0.4s",
},
},
},
});