-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
83 lines (82 loc) · 1.82 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
import {
transformerDirectives,
presetWebFonts,
presetWind,
defineConfig,
presetIcons,
transformerVariantGroup,
presetTypography,
presetUno
} from "unocss";
export default defineConfig({
presets: [
presetWind({
dark: "media"
}),
presetWebFonts({
provider: "google", // default provider
fonts: {
// these will extend the default theme
sans: ["Nunito Sans"],
mono: ["JetBrains Mono", "monospace"]
}
}),
presetIcons({
extraProperties: {
display: "inline-block",
"vertical-align": "middle"
}
}),
presetUno(), // required
presetTypography({
selectorName: "prose",
cssExtend: {
pre: {
background: "var(--fourth-background) !important",
"font-family": "var(--font-mono) !important",
"border-radius": "initial !important",
"white-space": "pre-wrap !important",
"word-break": "break-word !important"
},
a: {
"text-underline-offset": "5px"
},
"a:hover": {
color: "var(--accent)",
transition: "ease-in-out 0.25s"
},
code: {
background: "var(--fourth-background) !important",
padding: "0.25rem 0.5rem",
"border-radius": "initial !important",
"font-weight": "500",
"white-space": "pre-wrap !important"
},
"code::before": {
display: "none"
},
"code::after": {
display: "none"
},
img: {
"border-radius": "0.5rem",
"max-width": "100%"
}
}
})
],
transformers: [transformerDirectives(), transformerVariantGroup()],
theme: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
accent: "var(--accent)",
secondbackground: "var(--second-background)",
thirdbackground: "var(--third-background)",
fourthbackground: "var(--fourth-background)"
},
fontFamily: {
sans: ["Space Grotesk", "Outfit", "sans-serif"]
}
}
});