-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.ts
67 lines (64 loc) · 1.97 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
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/features/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
"game-card-grad": "linear-gradient(135deg, var(--app-purple-200), var(--app-purple-200))",
},
colors: {
"app-gold": {
500: "var(--app-gold-500)",
},
"app-red": {
500: "var(--app-red-500)",
},
"app-purple": {
500: "var(--app-purple-500)",
400: "var(--app-purple-400)",
200: "var(--app-purple-200)",
},
},
spacing: {
17: "4.5rem",
21: "5.5rem", // since p-20 is 5rem
"app-max-w": "var(--app-max-w)",
"app-dynamic-max-w": "var(--app-dynamic-max-w)",
"app-section-min-h": "var(--app-section-min-h)",
},
animation: {
"spin-300": "spin 3s linear infinite",
}
},
},
plugins: [
plugin(({ addUtilities }) => {
// for adding custom utilities. // https://tailwindcss.com/docs/plugins
const newUtilities = {
".grid-auto-fill-350": {
"grid-template-columns": "repeat(auto-fill, minmax(350px, 1fr))",
},
".grid-auto-fill-370": {
"grid-template-columns": "repeat(auto-fill, minmax(370px, 1fr))",
},
".grid-auto-fill-380": {
"grid-template-columns": "repeat(auto-fill, minmax(380px, 1fr))",
},
".grid-auto-fill-400": {
"grid-template-columns": "repeat(auto-fill, minmax(400px, 1fr))",
},
};
addUtilities(newUtilities);
}),
],
};
export default config;