-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
75 lines (74 loc) · 2.83 KB
/
unocss.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
import { defineConfig } from "@unocss/vite";
import { presetUno } from "@unocss/preset-uno";
import transformerVariantGroup from "@unocss/transformer-variant-group";
export default defineConfig({
presets: [presetUno()],
theme: {
colors: {
primary: "var(--color-primary)",
secondary: "var(--color-secondary)",
lightgrey: "var(--color-lightgrey)",
danger: "var(--color-danger)",
warning: "var(--color-warning)",
success: "var(--color-success)",
info: "var(--color-info)",
"transparent-white": "rgb(255 255 255 / 0.13)",
"transparent-black": "rgb(0 0 0 / 0.13)",
"very-transparent-black": "rgb(0 0 0 / 0.06)",
gray: {
100: "rgb(240, 240, 240)",
},
default: "var(--color-default)",
vibrant: "var(--vibrant)",
material: {
menu: "rgb(246 246 246 / 0.72)",
tooltip: "rgb(246 246 246 / .6)",
selection: "rgb(10 130 255 / 0.75)",
},
},
borderColor: {
default: "var(--color-border)",
},
backgroundColor: {
primary: "var(--bg-primary)",
element: "var(--bg-element)",
secondary: "var(--bg-secondary)",
default: "var(--color-default)",
fills: {
opaque: {
1: "rgb(0 0 0 / 0.85)",
2: "rgb(0 0 0 / 0.50)",
3: "rgb(0 0 0 / 0.25)",
4: "rgb(0 0 0 / 0.10)",
5: "rgb(0 0 0 / 0.05)",
},
},
},
shadowColor: {
default: "var(--color-default)",
},
textColor: {
opaque: {
1: "var(--text-opaque-1)",
2: "var(--text-opaque-2)",
3: "var(--text-opaque-3)",
},
},
boxShadow: {
sm: "0px 0.25px 0.25px 0px rgb(0 0 0 / 0.15), 0px 1px 0.75px 0px rgb(0 0 0 / 0.05)",
md: "0px 0.5px 3px 0px rgb(0 0 0 / 0.12), 0px 1px 2px 0px rgb(0 0 0 / 0.12), 0px 0.5px 1px 0px rgb(0 0 0 / 0.24)",
tooltip: "0px 36px 100px 0px rgb(0 0 0 / 0.25), 0px 0px 3px 0px rgb(0 0 0 / 0.55)",
menu: "0px 2px 4px 0px rgb(0 0 0 / 0.15), 0px 8px 15px 6px rgb(0 0 0 / 0.18)",
"menu-border": "inset 0px 0.5px 1px 0px rbg(255 255 255 / 0.5)",
checkbox: "inset 0px 1px 2px 0px rgb(0 0 0 / 0.1), inset 0px 0px 2px 0px rgb(0 0 0 / 0.1)",
switch: "inset 0px 0px 1px 0px rgb(0 0 0 / 0.05), inset 0px 0px 2px 0.25px rgb(0 0 0 / 0.08)",
field: "0px 0px 0px 0.5px rgba(0, 0, 0, 0.05), 0px 0.5px 2.5px 0px rgba(0, 0, 0, 0.3)",
"segmented-control":
"inset 0px 0px 2px 0px rgb(0 0 0 / 0.05), inset 0px 0px 4px 0px rgb(0 0 0 / 0.05), inset 0px 0px 2px 0px rgb(0 0 0 / 0.05)",
progress:
"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.02), inset 0px 0px 2px 0px rgba(0, 0, 0, 0.03), inset 0px 0px 2px 0px rgba(0, 0, 0, 0.04)",
"image-well": "inset 0px 0.5px 1.5px 0px rgb(0 0 0 / 0.14), 0px 0px 0px 1px rgb(0 0 0 / 0.06)",
},
},
transformers: [transformerVariantGroup()],
});