-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.cjs
191 lines (181 loc) · 5.75 KB
/
tailwind.config.cjs
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
const generateSizes = (count, unit) =>
Array(count)
.fill(null)
.map((_, key) => ({ [key + 1]: `${(key + 1) * 4}${unit || "px"}` }))
.reduce((a, b) => ({ ...a, ...b }), {});
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px"
}
},
extend: {
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))"
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))"
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))"
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))"
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))"
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))"
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))"
},
// main
"main-100": "rgba(36,37,38,0.1)",
"main-200": "rgba(36,37,38,0.2)",
"main-300": "rgba(36,37,38,0.3)",
"main-400": "rgba(36,37,38,0.4)",
"main-500": "rgba(36,37,38,0.5)",
"main-600": "rgba(36,37,38,0.6)",
"main-700": "rgba(36,37,38,0.7)",
"main-800": "rgba(36,37,38,0.8)",
"main-900": "rgba(36,37,38,0.9)",
main: "rgba(36,37,38,1)",
// white
white: "rgba(255, 255, 255, 1)",
"white-900": "rgba(255, 255, 255, 0.9)",
"white-800": "rgba(255, 255, 255, 0.8)",
"white-700": "rgba(255, 255, 255, 0.7)",
"white-600": "rgba(255, 255, 255, 0.6)",
"white-500": "rgba(255, 255, 255, 0.5)",
"white-400": "rgba(255, 255, 255, 0.4)",
"white-300": "rgba(255, 255, 255, 0.3)",
"white-200": "rgba(255, 255, 255, 0.2)",
"white-100": "rgba(255, 255, 255, 0.1)",
// black
black: "rgba(0, 0, 0, 1)",
"black-900": "rgba(0, 0, 0, 0.9)",
"black-800": "rgba(0, 0, 0, 0.8)",
"black-700": "rgba(0, 0, 0, 0.7)",
"black-600": "rgba(0, 0, 0, 0.6)",
"black-500": "rgba(0, 0, 0, 0.5)",
"black-400": "rgba(0, 0, 0, 0.4)",
"black-300": "rgba(0, 0, 0, 0.3)",
"black-200": "rgba(0, 0, 0, 0.2)",
"black-100": "rgba(0, 0, 0, 0.1)",
// bg
"bg-dark": "#121215",
// primary
"primary-100": "rgba(75,95,115,0.1)",
"primary-200": "rgba(75,95,115,0.2)",
"primary-300": "rgba(75,95,115,0.3)",
"primary-400": "rgba(75,95,115,0.4)",
"primary-500": "rgba(75,95,115,0.5)",
"primary-600": "rgba(75,95,115,0.6)",
"primary-700": "rgba(75,95,115,0.7)",
"primary-800": "rgba(75,95,115,0.8)",
"primary-900": "rgba(75,95,115,0.9)",
primary: "rgba(75,95,115,1)",
// secondary
"secondary-100": "rgba(41,53,64,0.1)",
"secondary-200": "rgba(41,53,64,0.2)",
"secondary-300": "rgba(41,53,64,0.3)",
"secondary-400": "rgba(41,53,64,0.4)",
"secondary-500": "rgba(41,53,64,0.5)",
"secondary-600": "rgba(41,53,64,0.6)",
"secondary-700": "rgba(41,53,64,0.7)",
"secondary-800": "rgba(41,53,64,0.8)",
"secondary-900": "rgba(41,53,64,0.9)",
secondary: "rgba(41,53,64,1)",
// highlight
"highlight-100": "rgba(79,77,140,0.1)",
"highlight-200": "rgba(79,77,140,0.2)",
"highlight-300": "rgba(79,77,140,0.3)",
"highlight-400": "rgba(79,77,140,0.4)",
"highlight-500": "rgba(79,77,140,0.5)",
"highlight-600": "rgba(79,77,140,0.6)",
"highlight-700": "rgba(79,77,140,0.7)",
"highlight-800": "rgba(79,77,140,0.8)",
"highlight-900": "rgba(79,77,140,0.9)",
highlight: "rgba(79,77,140,1)",
// blue
"blue-100": "rgba(0,112,243,0.1)",
"blue-200": "rgba(0,112,243,0.2)",
"blue-300": "rgba(0,112,243,0.3)",
"blue-400": "rgba(0,112,243,0.4)",
"blue-500": "rgba(0,112,243,0.5)",
"blue-600": "rgba(0,112,243,0.6)",
"blue-700": "rgba(0,112,243,0.7)",
"blue-800": "rgba(0,112,243,0.8)",
"blue-900": "rgba(0,112,243,0.9)",
blue: "rgba(0,112,243,1)",
// green
"green-100": "rgba(12,205,107,0.1)",
"green-200": "rgba(12,205,107,0.2)",
"green-300": "rgba(12,205,107,0.3)",
"green-400": "rgba(12,205,107,0.4)",
"green-500": "rgba(12,205,107,0.5)",
"green-600": "rgba(12,205,107,0.6)",
"green-700": "rgba(12,205,107,0.7)",
"green-800": "rgba(12,205,107,0.8)",
"green-900": "rgba(12,205,107,0.9)",
green: "rgba(12,205,107,1)"
},
borderRadius: {
lg: `var(--radius)`,
md: `calc(var(--radius) - 2px)`,
sm: "calc(var(--radius) - 4px)"
},
keyframes: {
"accordion-down": {
from: { height: 0 },
to: { height: "var(--radix-accordion-content-height)" }
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 }
}
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out"
},
fontSize: {
note: ["9.2px", { fontWeight: 600 }],
comment: ["11.5px", { fontWeight: 600 }],
small: ["14.4px", { fontWeight: 600 }],
base: ["18px", { fontWeight: 400 }],
lg: ["22.5px", { fontWeight: 600 }],
xl: ["28.13px", { fontWeight: 600 }],
"2xl": ["35.16px", { fontWeight: 600 }],
"3xl": ["43.95px", { fontWeight: 600 }],
"4xl": ["54.9px", { fontWeight: 700, lineHeight: "50px" }],
...generateSizes(24)
},
backgroundImage: {
login: "url('/backgrounds/login.svg')",
"login-light": "url('/backgrounds/login-light.svg')"
}
}
},
plugins: [require("tailwindcss-animate")]
};