-
Notifications
You must be signed in to change notification settings - Fork 1
/
unocss.config.ts
66 lines (65 loc) · 1.41 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
// uno.config.ts
import {
defineConfig,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from "unocss";
export default defineConfig({
shortcuts: [
{
btn: "rounded-lg bg-stone-100 dark:bg-transparent p-4 transition duration-200 active:scale-95 hover:brightness-75",
},
{ card: "bg-white dark:bg-stone-900 rounded-lg p-4" },
],
theme: {
colors: {
// ...
},
},
presets: [
presetUno(),
presetIcons({
scale: 1.25,
extraProperties: {
display: "inline-block",
"vertical-align": "middle",
},
}),
presetWebFonts({
provider: "google",
fonts: {
"jetbrains-mono": "JetBrains Mono",
},
}),
presetTypography({
cssExtend: {
hr: {
background: "rgba(125, 125, 125, 0.4)",
height: "1px",
},
// reset both pre and code first to override default
"pre,code": {
background: "",
},
pre: {
background: "#f3f4f6",
},
"html.dark pre": {
background: "#000",
},
img: {
margin: "1rem auto",
border: "1px solid black",
},
"html.dark img": {
border: "1px solid rgba(120, 113, 108)",
},
},
}),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
});