-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
52 lines (48 loc) · 1013 Bytes
/
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
import type { Config } from "tailwindcss";
const colorList = [
"slate",
"gray",
"zinc",
"neutral",
"stone",
"red",
"orange",
"amber",
"yellow",
"lime",
"green",
"emerald",
"teal",
"cyan",
"sky",
"blue",
"indigo",
"violet",
"purple",
"fuchsia",
"pink",
"rose",
];
const colorSafeList: any[] = [];
for (const colorName of colorList) {
const shades = [
50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700,
750, 800, 850, 900, 950,
];
shades.map((shade) => {
// colorSafeList.push(`text-${colorName}-${shade}`);
colorSafeList.push(`bg-${colorName}-${shade}`);
});
}
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {},
safelist: colorSafeList,
plugins: [],
darkMode: "selector",
};
export default config;