-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
83 lines (75 loc) · 1.46 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 {
defineConfig,
presetIcons,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from "unocss";
import { myPreset } from "./my-preset";
// https://unocss.dev
export default defineConfig({
theme: {
colors: {
primary: "#D3AD7F",
accent: "#5E361C",
dark: "#101011",
light: "#FFF6EB",
},
fontFamily: {
bebas: "sans-serif",
outfit: "sans-serif",
poppins: "sans-serif",
inter: "sans-serif",
},
},
configDeps: ["./my-preset.ts"],
rules: [],
shortcuts: [
[/^area-(.*)$/, ([, v]) => `[grid-area:_${v}]`, { layer: "default" }],
[
/^gta-(.*)$/,
([, v]) =>
`[grid-template-areas:_${v
?.replace(/-/g, "_")
.replace(/\|/g, " ")
.split(" ")
.map(v => '"' + v + '"')
.join("_")}]`,
{ layer: "default" },
],
],
variants: [],
preflights: [
{
getCSS: () => `
:root {
-webkit-tap-highlight-color: transparent;
}
`,
},
],
presets: [
myPreset,
presetUno(),
presetIcons({ scale: 1.2 }),
presetWebFonts({
fonts: {
bebas: "Bebas Neue",
outfit: {
name: "Outfit",
weights: ["400", "500", "600", "700", "800", "900"],
},
poppins: {
name: "Poppins",
weights: ["400", "500", "600", "700", "800", "900"],
},
inter: {
name: "Inter",
weights: ["300", "400", "500", "600", "700", "800", "900"],
},
},
}),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
});