-
Notifications
You must be signed in to change notification settings - Fork 14
/
uno.config.ts
41 lines (40 loc) · 937 Bytes
/
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
import { defineConfig } from "unocss/vite";
import { presetWind, presetTypography } from "unocss";
import { colors } from "unocss/preset-wind"
export default defineConfig({
presets: [presetWind(), presetTypography({
cssExtend: {
"h1": {
"font-size": "clamp(1.5rem, 5vw, 2rem)",
"line-height": "1.2em",
"text-align": "left"
},
"h2": {
"font-size": "clamp(1.25rem, 5vw, 1.75rem)",
"line-height": "1.2em",
"text-align": "left"
},
"h3": {
"font-size": "clamp(1.125rem, 5vw, 1.5rem)",
"line-height": "1.2em",
"text-align": "left"
},
"h4": {
"font-size": "clamp(1rem, 5vw, 1.25rem)",
"line-height": "1.2em",
"text-align": "left"
},
"pre": {
"border-radius": "0.25rem",
"border": `1px solid ${colors.pink[300]}`,
"padding": "0.75rem",
}
}
})],
theme: {
fontFamily: {
serif: "'Lora', serif",
mono: "'IBM Plex Mono', monospace",
}
}
});