forked from glaciyan/gscale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindi.config.ts
97 lines (92 loc) · 2.57 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
90
91
92
93
94
95
96
97
import { defineConfig } from "windicss/helpers";
import plugin from "windicss/plugin";
import aspectRatio from "windicss/plugin/aspect-ratio";
import lineClamp from "windicss/plugin/line-clamp";
import { range } from "./src/lib/range";
const em = ["anemo", "pyro", "electro", "geo", "cryo", "hydro", "dendro", "neutral", "danger"];
const sizes = ["sm", "md", "lg", "xl", "2xl"];
export default defineConfig({
plugins: [
aspectRatio,
lineClamp,
plugin(({ addUtilities }) => {
addUtilities({
".content-none": {
content: "''",
},
});
}),
],
safelist: [
range(5).map((n) => `text-genshin-rarity-${n}`),
em.map((e) => `text-genshin-element-${e}`),
em.map((e) => `ring-genshin-element-${e}`),
em.map((e) => `bg-genshin-element-${e}-dark`),
em.map((e) => `bg-genshin-element-${e}`),
em.map((e) => `border-genshin-element-${e}`),
sizes.map((s) => `max-w-screen-${s}`),
],
attributify: {
prefix: "w",
},
theme: {
extend: {
screens: {
xlp: { raw: "(max-width: 1320px)" },
"2xlp": { raw: "(max-width: 1570px)" },
},
// fontFamily: {
// sans: ["Open Sans", "ui-sans-serif", "system-ui"],
// },
colors: {
dark: {
"50": "#aaacb0",
"100": "#87898f",
"200": "#404040",
"300": "#373739",
"400": "#2f3033",
"500": "#292A2C",
"600": "#252527",
"700": "#1d1e20",
"800": "#18191b",
"900": "#09090a",
},
light: {
important: "#F4F4F4",
normal: "#C9CBCF",
ternary: "#8A8C8F",
},
genshin: {
element: {
anemo: "#80FFD7",
pyro: "#FF9999",
electro: "#FFACFF",
geo: "#FFE667",
cryo: "#99FFFF",
hydro: "#80C0FF",
dendro: "#B6F263",
// Semantic colors (without having to majorly change up the api of Button.vue)
neutral: "#F4F4F4",
danger: "#EF4444",
// for selector icon seperator
"anemo-dark": "#2FD09A",
"pyro-dark": "#FF5C5C",
"electro-dark": "#E368E3",
"geo-dark": "#edad54",
"cryo-dark": "#57cbcb",
"hydro-dark": "#3D9EFF",
"dendro-dark": "#7bb42d",
"neutral-dark": "#8D8D8D",
},
rarity: {
1: "#757575",
2: "#6FD1A2",
3: "#5AA6E0",
4: "#B07DE6",
5: "#F08E3A",
},
},
},
},
},
});