-
Notifications
You must be signed in to change notification settings - Fork 5
/
uno.config.mjs
46 lines (45 loc) · 1.09 KB
/
uno.config.mjs
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
// @ts-check
import { defineConfig, presetUno, presetIcons } from "unocss";
export default defineConfig({
cli: {
entry: {
patterns: ["{content,_layouts}/**/*.{html,md,liquid}", "eleventy.config.js"],
outFile: "content/styles/uno.css",
},
},
presets: [
presetIcons(),
presetUno({
dark: "media",
}),
],
theme: {
spacing: {
1: "calc(var(--rhythm) * .25rem * 1)",
2: "calc(var(--rhythm) * .25rem * 2)",
3: "calc(var(--rhythm) * .25rem * 3)",
4: "calc(var(--rhythm) * .25rem * 4)",
5: "calc(var(--rhythm) * .25rem * 5)",
6: "calc(var(--rhythm) * .25rem * 6)",
7: "calc(var(--rhythm) * .25rem * 7)",
8: "calc(var(--rhythm) * .25rem * 8)",
},
fontFamily: {
grotesk: "var(--font-grotesk)",
},
colors: {
textHighContrast: "var(--color-text-high-contrast)",
textPrimary: "var(--color-text-primary)",
textSecondary: "var(--color-text-secondary)",
textMuted: "var(--color-text-muted)",
textDisabled: "var(--color-text-disabled)",
},
width: {
content: "var(--width-content)",
},
breakpoints: {
sm: "414px",
md: "550px",
},
},
});