-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
62 lines (61 loc) · 1.56 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
import transformerVariantGroup from "@unocss/transformer-variant-group";
import { defineConfig, presetIcons, presetUno, presetWebFonts } from "unocss";
import { presetForms } from "@julr/unocss-preset-forms";
import { presetHeroPatterns } from "@julr/unocss-preset-heropatterns";
import { createSafeList } from "./src/lib/theme/safelist";
import { themes } from "./src/lib/theme/theme";
import presetTheme from "unocss-preset-theme";
export default defineConfig({
rules: [],
shortcuts: [],
safelist: [
// ...Array.from({ length: 26 }, (_, i) => String.fromCharCode("a".charCodeAt(0) + i)).map(
// (char) => `font-${char}`
// ),
...createSafeList(),
// `font-thin font-extralight font-light font-normal font-medium font-semibold font-bold font-extrabold font-black
// btn-primary btn-secondary`,
],
theme: {},
presets: [
presetUno({ dark: "class" }),
presetForms(),
// fix types later
// @ts-ignore
presetTheme({
theme: themes
}),
// @ts-ignore
presetHeroPatterns(),
presetWebFonts({
provider: "google", // default provider
fonts: {
// these will extend the default theme
sans: "Roboto",
mono: ["Fira Code", "Fira Mono:400,700"],
// custom ones
lobster: "Lobster",
lato: [
{
name: "Lato",
weights: ["400", "700"],
italic: true
},
{
name: "sans-serif",
provider: "none"
}
],
a: "Playfair Display",
b: "Lora"
}
}),
presetIcons({
extraProperties: {
display: "inline-block"
// ...
}
})
],
transformers: [transformerVariantGroup()]
});