-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
50 lines (48 loc) · 1.15 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,
presetUno,
transformerDirectives,
transformerVariantGroup,
} from "unocss";
const borderAccents = [1, 2, 3, 4, 5, 6, 7, 8, 9].map(
i =>
[
`border-accent-${i}00`,
{ "border-color": `var(--color-accent-border-${i}00)` },
] as [string, Record<string, string>]
);
export default defineConfig({
rules: [
[
"shadow-card-hover",
{ filter: "drop-shadow(0 1rem 3rem var(--color-accent-shadow-100))" },
],
["text-primary", { color: "var(--color-accent-text-primary)" }],
["text-secondary", { color: "var(--color-accent-text-secondary)" }],
["text-tertiary", { color: "var(--color-accent-text-tertiary)" }],
...borderAccents,
],
shortcuts: {
"home-title":
"text-2xl font-bold border-b-4 border-b-solid border-b-[var(--color-accent)]",
},
presets: [
presetUno(),
presetIcons({
scale: 1.2,
warn: true,
unit: "em",
}),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
theme: {
breakpoints: {
xs: "375px",
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
},
},
});