forked from elucidator-project/elucidator-blog-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windi.config.ts
86 lines (85 loc) · 2.19 KB
/
windi.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
84
85
86
import { defineConfig } from "vite-plugin-windicss"
import plugin from "windicss/plugin"
export default defineConfig({
extract: {
include: ["index.html", "src/**/*.{vue, ts, md}"],
},
darkMode: "class",
theme: {
minHeight: {
prose: "40ch",
},
extend: {
colors: {
// The colors was inspired from kirito's elucidator sword color
elucidator: {
"50": "#f6f7f9",
"100": "#edeff2",
"200": "#e1e4ea",
"300": "#c3c9d5",
"400": "#a5adc0",
"500": "#828da6",
"600": "#63708c",
"700": "#4e586e",
"800": "#3f475a",
"900": "#313745",
},
// The colors was inspired from kirito's dark repulser sword color
"dark-repulser": {
"50": "#FFF5E5",
"100": "#FFF5E5",
"200": "#FFE6BB",
"300": "#FFD593",
"400": "#FF9C00",
"500": "#AB6900",
"600": "#E39000",
"700": "#7B4C00",
"800": "#513200",
"900": "#2E1C00",
},
},
},
},
plugins: [
plugin(({ addBase, theme }) => {
addBase({
h1: {
// @ts-expect-error
fontSize: theme("fontSize.2xl"),
// @ts-expect-error
fontWeight: theme("fontWeight.bold"),
},
h2: {
// @ts-expect-error
fontSize: theme("fontSize.xl"),
// @ts-expect-error
fontWeight: theme("fontWeight.bold"),
},
h3: {
// @ts-expect-error
fontSize: theme("fontSize.lg"),
// @ts-expect-error
fontWeight: theme("fontWeight.bold"),
},
h4: {
// @ts-expect-error
fontSize: theme("fontSize.lg"),
// @ts-expect-error
fontWeight: theme("fontWeight.bold"),
},
h5: {
// @ts-expect-error
fontSize: theme("fontSize.lg"),
// @ts-expect-error
fontWeight: theme("fontWeight.bold"),
},
h6: {
// @ts-expect-error
fontSize: theme("fontSize.lg"),
// @ts-expect-error
fontWeight: theme("fontWeight.bold"),
},
})
}),
],
})