-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.ts
89 lines (86 loc) · 2.48 KB
/
tailwind.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 containerQueries from "@tailwindcss/container-queries";
import type { Config } from "tailwindcss";
import { fontFamily } from "tailwindcss/defaultTheme";
import plugin from "tailwindcss/plugin";
export default {
darkMode: ["class"],
content: ["./src/**/*.{html,js,svelte,ts}"],
safeList: ["dark"],
theme: {
extend: {
colors: {
icon: "hsl(var(--icon) / <alpha-value>)",
link: "hsl(var(--link) / <alpha-value>)",
hover: "hsl(var(--hover) / <alpha-value>)",
skillbar: "hsl(var(--skillbar) / <alpha-value>)",
maxedbar: "hsl(var(--maxedbar) / <alpha-value>)",
maxed: "hsl(var(--maxed) / <alpha-value>)",
gold: "hsl(var(--gold) / <alpha-value>)",
text: "hsl(var(--text) / <alpha-value>)",
background: {
DEFAULT: "hsl(var(--background) / <alpha-value>)",
grey: "hsl(var(--grey_background) / <alpha-value>)",
lore: "var(--lore_background)"
},
header: "hsl(var(--header) / <alpha-value>)",
minecraft: {
0: "var(--§0)",
1: "var(--§1)",
2: "var(--§2)",
3: "var(--§3)",
4: "var(--§4)",
5: "var(--§5)",
6: "var(--§6)",
7: "var(--§7)",
8: "var(--§8)",
9: "var(--§9)",
a: "var(--§a)",
b: "var(--§b)",
c: "var(--§c)",
d: "var(--§d)",
e: "var(--§e)",
f: "var(--§f)"
}
},
bg: "var(--bg)",
logo: "var(--logo)",
textShadow: {
sm: "0 0px 2px var(--tw-shadow-color)",
DEFAULT: "0 0px 4px var(--tw-shadow-color)",
lg: "0 0px 8px var(--tw-shadow-color)"
},
animation: {
shine: "shine 4s infinite"
},
keyframes: {
shine: {
"0%": { transform: "translateY(120%)" },
"33%, 100%": { transform: "translateY(-120%)" }
}
},
fontFamily: {
icomoon: ["Montserrat", "icomoon", ...fontFamily.sans],
sans: ["Montserrat", ...fontFamily.sans]
}
}
},
safelist: [
{
// safelist bg/text minecraft colors as they are dynamic
pattern: /^(bg|text)-minecraft-[0-9a-f]$/
}
],
plugins: [
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
"text-shadow": (value) => ({
textShadow: value
})
},
{ values: theme("textShadow") }
);
}),
containerQueries
]
} satisfies Config;