forked from elucidator-project/elucidator-blog-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windi.config.ts
89 lines (88 loc) · 2.24 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
87
88
89
import { defineConfig } from "vite-plugin-windicss"
import plugin from "windicss/plugin"
export default defineConfig({
extract: {
include: ["index.html", "src/**/*.{vue, ts, md}"],
},
files: {
associations: { "*.scss": "postcss" }
},
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": "#f1f9f8",
"100": "#f1f9f8",
"200": "#cceae7",
"300": "#9ad6cf",
"400": "#63bfb5",
"500": "#419f94",
"600": "#347f76",
"700": "#28625b",
"800": "#21504a",
"900": "#1f4c47",
},
},
},
},
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"),
},
})
}),
],
})