-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
208 lines (202 loc) · 6.02 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
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
import type { Config } from "tailwindcss";
const plugin = require("tailwindcss/plugin");
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
safelist: [
{
pattern: /(bg|text|border)-./, // 👈 This includes bg of all colors and shades
},
],
theme: {
extend: {
boxShadow: {
ragnarok:
"0_2.8px_2.2px_rgba(0,_0,_0,_0.034),_0_6.7px_5.3px_rgba(0,_0,_0,_0.048),_0_12.5px_10px_rgba(0,_0,_0,_0.06),_0_22.3px_17.9px_rgba(0,_0,_0,_0.072),_0_41.8px_33.4px_rgba(0,_0,_0,_0.086),_0_100px_80px_rgba(0,_0,_0,_0.12)",
aesthetic: "0_3px_10px_rgb(0,0,0,0.2)",
},
animation: {
wiggle: "wiggle 1s ease-in-out infinite",
pulse: "pulse 2s infinite",
shine: "shine 1s",
},
gridTemplateColumns: {
"13": "repeat(13, minmax(0, 1fr))",
},
backgroundImage: {
"gradient-amber": "linear-gradient(180deg,#FFD754,#FFF5C2 50%,#FFFBE6)",
"gradient-azure": "linear-gradient(180deg,#B0DDFF,#CFECFF 50%,#EBF8FF)",
"gradient-rose": "linear-gradient(180deg,#FF99D6,#FFBFE9 50%,#FFE6F7)",
"gradient-orange":
"linear-gradient(180deg,#FCCD9A,#FFE4C2 50%,#FFF5E6)",
"gradient-purple":
"linear-gradient(180deg,#DAADF7,#E8CAFA 50%,#F6E8FC)",
"gradient-radial-orange":
"radial-gradient(50% 50% at 50% 50%, #FB5607 39.0625%, #FB5607 100%)",
"gradient-radial-rose":
"radial-gradient(50% 50% at 50% 50%, #FF99D6 39.0625%, #FF99D6 100%)",
"gradient-radial-purple":
"radial-gradient(50% 50% at 50% 50%, #8338EC 39.0625%, #8338EC 100%)",
"gradient-radial-azure":
"radial-gradient(50% 50% at 50% 50%, #75B8FF 39.0625%, #75B8FF 100%)",
"gradient-ocean": "linear-gradient(90deg,#2155BF,#78b9e9 50%,#9ef3e9)",
"gradient-harvest":
"linear-gradient(90deg,#FFBE0B,#E04807 50%,#E04807)",
},
colors: {
backgroundLight: "hsla(30,94%,72%,.1)",
blue: {
400: "#2589FE",
500: "#0070F3",
600: "#2F6FEB",
},
amber: {
"50": "#FFFDF2",
"100": "#FFFBE6",
"200": "#FFF5C2",
"300": "#FFED9E",
"400": "#FFD754",
"500": "#FFBE0B",
"600": "#E6A309",
"700": "#BF7E06",
"800": "#995B03",
"900": "#733E02",
"950": "#4A2301",
},
"international-orange": {
"50": "#FFFAF2",
"100": "#FFF5E6",
"200": "#FFE4C2",
"300": "#FCCD9A",
"400": "#FC9851",
"500": "#FB5607",
"600": "#E04807",
"700": "#BA3704",
"800": "#962803",
"900": "#701B01",
"950": "#470F01",
},
rose: {
"50": "#FFF2FB",
"100": "#FFE6F7",
"200": "#FFBFE9",
"300": "#FF99D6",
"400": "#FF4DA9",
"500": "#FF006E",
"600": "#E60060",
"700": "#BF0049",
"800": "#990036",
"900": "#730024",
"950": "#4A0015",
},
"purple-heart": {
"50": "#FCF5FF",
"100": "#F6E8FC",
"200": "#E8CAFA",
"300": "#DAADF7",
"400": "#B272F2",
"500": "#8338EC",
"600": "#722FD6",
"700": "#5620B3",
"800": "#3D148F",
"900": "#280C6B",
"950": "#160545",
},
"azure-radiance": {
"50": "#F5FCFF",
"100": "#EBF8FF",
"200": "#CFECFF",
"300": "#B0DDFF",
"400": "#75B8FF",
"500": "#3A86FF",
"600": "#3073E6",
"700": "#2155BF",
"800": "#153D99",
"900": "#0B2973",
"950": "#05164A",
},
},
},
keyframes: {
shine: {
"100%": { left: "125%" },
},
wiggle: {
"0%, 100%": { transform: "rotate(-3deg)" },
"50%": { transform: "rotate(3deg)" },
},
pulse: {
"0%": {
transform: "scale(0.95)",
boxShadow: "0 0 0 0 rgba(0, 0, 0, 0.7)",
},
"70%": {
transform: "scale(1)",
boxShadow: "0 0 0 10px rgba(0, 0, 0, 0)",
},
"100%": {
transform: "scale(0.95)",
boxShadow: "0 0 0 0 rgba(0, 0, 0, 0)",
},
},
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/forms"),
require("@tailwindcss/aspect-ratio"),
require("@tailwindcss/container-queries"),
plugin(function ({ addComponents }) {
addComponents({
".btn": {
padding: ".5rem 1rem",
borderRadius: ".25rem",
fontWeight: "600",
},
".btn-blue": {
backgroundColor: "#3490dc",
color: "#fff",
"&:hover": {
backgroundColor: "#2779bd",
},
},
".btn-red": {
backgroundColor: "#e3342f",
color: "#fff",
"&:hover": {
backgroundColor: "#cc1f1a",
},
},
".btn-amber": {
backgroundColor: "#FFED9E",
border: "black 1px solid",
color: "black",
transition:
"background-color 1s ease-out 100ms, color 0.25s ease-in 100ms",
"&:hover": {
backgroundColor: "#FF006E",
color: "white",
},
},
".form-amber": {
backgroundColor: "rgba(255, 220, 75, 0.85)",
boxShadow:
"rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px",
},
".form-orange": {
backgroundColor: "#FFE4C2",
boxShadow:
"rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px",
},
".tight-shadow": {
boxShadow:
"rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px",
},
});
}),
],
};
export default config;