-
Notifications
You must be signed in to change notification settings - Fork 1
/
uno.config.ts
50 lines (49 loc) · 1.44 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
import { defineConfig, presetIcons, presetTypography, presetUno, transformerDirectives } from "unocss";
export default defineConfig({
presets: [presetUno(), presetIcons(), presetTypography()],
transformers: [transformerDirectives()],
theme: {
colors: {
background: "rgb(var(--background))",
foreground: "rgb(var(--foreground))",
primary: {
DEFAULT: "rgb(var(--primary))",
foreground: "rgb(var(--primary-foreground))",
},
secondary: {
DEFAULT: "rgb(var(--secondary))",
foreground: "rgb(var(--secondary-foreground))",
},
accent: {
DEFAULT: "rgb(var(--accent))",
foreground: "rgb(var(--accent-foreground))",
},
muted: {
DEFAULT: "rgb(var(--muted))",
foreground: "rgb(var(--muted-foreground))",
},
border: "rgb(var(--border))",
info: {
DEFAULT: "rgb(var(--info))",
foreground: "rgb(var(--info-foreground))",
},
success: {
DEFAULT: "rgb(var(--success))",
foreground: "rgb(var(--success-foreground))",
},
warning: {
DEFAULT: "rgb(var(--warning))",
foreground: "rgb(var(--warning-foreground))",
},
error: {
DEFAULT: "rgb(var(--error))",
foreground: "rgb(var(--error-foreground))",
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
},
});