-
Notifications
You must be signed in to change notification settings - Fork 9
/
tailwind.config.js
95 lines (92 loc) · 3 KB
/
tailwind.config.js
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
const plugin = require("tailwindcss/plugin");
module.exports = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx,css,md,mdx,html,json,scss}"],
darkMode: "class",
safelist: [
"text-2xl",
"text-3xl",
{
pattern: /bg-item-(unit|technology|tech|building|upgrade|ability)/,
variants: ["hover"],
},
{
pattern: /text-item-(unit|technology|tech|building|upgrade|ability)/,
},
{
pattern: /bg-bar-(unit|technology|tech|building|unique|bonus|upgrade|ability)/,
},
{
pattern: /text-item-(unit|technology|tech|building|upgrade|ability)-light/,
},
],
theme: {
extend: {
colors: {
gray: {
50: "#E9E9EA",
100: "#D3D3D4",
200: "#A8A8AA",
300: "#7C7C7F",
400: "#515155",
500: "#25252A",
600: "#1E1E22",
700: "#161619",
800: "#0F0F11",
900: "#070708",
},
unique: "#DFC686",
item: {
map: "#3A5D7E",
unit: "#824F34",
"unit-light": "#C36B3C",
upgrade: "#32806B",
tech: "#32806B",
technology: "#32806B",
"upgrade-light": "#08A67B",
"tech-light": "#08A67B",
"technology-light": "#08A67B",
building: "#345469",
"building-light": "#477899",
ability: "#5C457B",
"ability-light": "#6571A1",
},
bar: {
upgrade: "#B16239",
base: "#A9A9A9",
tech: "#32806B",
technology: "#32806B",
unique: "#AF944E",
building: "#477899",
bonus: "#5B5B5B",
ability: "#20263D",
},
},
fontFamily: {
body: '"Sen", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
heading:
'"Sen", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
sans: '"Sen", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
serif: 'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',
mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
},
},
},
corePlugins: {},
plugins: [
plugin(function ({ addUtilities }) {
addUtilities({
".scrollbar-hide": {
/* IE and Edge */
"-ms-overflow-style": "none",
/* Firefox */
"scrollbar-width": "none",
/* Safari and Chrome */
"&::-webkit-scrollbar": {
display: "none",
},
},
});
}),
],
safeList: ["opacity-95"],
};