-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
420 lines (418 loc) · 10.7 KB
/
tailwind.config.ts
File metadata and controls
420 lines (418 loc) · 10.7 KB
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
import type { Config } from "tailwindcss";
export default {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
prefix: "",
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px'
}
},
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.slate.700'), // Default text for prose on light bg
a: {
color: theme('colors.blue.600'),
'&:hover': {
color: theme('colors.blue.700'),
},
},
h1: { color: theme('colors.slate.900') },
h2: { color: theme('colors.slate.800') },
h3: { color: theme('colors.slate.800') },
h4: { color: theme('colors.slate.700') },
strong: { color: theme('colors.slate.900') },
code: {
color: theme('colors.pink.600'),
backgroundColor: theme('colors.slate.100'),
padding: '0.2em 0.4em',
borderRadius: '0.25rem',
},
pre: {
color: theme('colors.slate.200'), // Light text for code blocks
backgroundColor: theme('colors.slate.800'), // Dark bg for code blocks
},
blockquote: {
color: theme('colors.slate.600'),
borderLeftColor: theme('colors.slate.300'),
},
// Ensure list markers are also dark
'ul > li::before': { backgroundColor: theme('colors.slate.500') },
'ol > li::before': { color: theme('colors.slate.500') },
},
}, // DEFAULT object closes
invert: {
css: {
color: theme('colors.slate.300'), // Lighter base text for dark mode
a: {
color: theme('colors.blue.400'),
'&:hover': {
color: theme('colors.blue.300'),
},
},
h1: { color: theme('colors.slate.100') },
h2: { color: theme('colors.slate.200') },
h3: { color: theme('colors.slate.200') },
h4: { color: theme('colors.slate.300') },
strong: { color: theme('colors.slate.100') },
code: { // For inline code in dark mode
color: theme('colors.pink.400'),
backgroundColor: theme('colors.slate.800'),
padding: '0.2em 0.4em',
borderRadius: '0.25rem',
},
// 'pre' styles from DEFAULT are already dark-mode friendly (slate.200 text on slate.800 bg)
// and prose-invert typically doesn't re-invert them.
blockquote: {
color: theme('colors.slate.400'),
borderLeftColor: theme('colors.slate.700'),
},
'ul > li::before': { backgroundColor: theme('colors.slate.600') }, // Ensure markers are visible
'ol > li::before': { color: theme('colors.slate.400') },
}
}
}), // typography theme function's return object closes
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))'
},
sidebar: {
DEFAULT: 'hsl(var(--sidebar-background))',
foreground: 'hsl(var(--sidebar-foreground))',
primary: 'hsl(var(--sidebar-primary))',
'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
accent: 'hsl(var(--sidebar-accent))',
'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
border: 'hsl(var(--sidebar-border))',
ring: 'hsl(var(--sidebar-ring))'
}
},
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'
}
},
'fade-in': {
'0%': {
opacity: '0',
transform: 'translateY(10px)'
},
'100%': {
opacity: '1',
transform: 'translateY(0)'
}
},
'fade-out': {
'0%': {
opacity: '1',
transform: 'translateY(0)'
},
'100%': {
opacity: '0',
transform: 'translateY(10px)'
}
},
'text-shimmer': {
'0%': {
backgroundPosition: '100% 50%',
},
'100%': {
backgroundPosition: '0% 50%',
},
},
'slide-up': {
'0%': {
opacity: '0',
transform: 'translateY(30px)'
},
'100%': {
opacity: '1',
transform: 'translateY(0)'
}
},
'slide-in-left': {
'0%': {
opacity: '0',
transform: 'translateX(-30px)'
},
'100%': {
opacity: '1',
transform: 'translateX(0)'
}
},
'slide-in-right': {
'0%': {
opacity: '0',
transform: 'translateX(30px)'
},
'100%': {
opacity: '1',
transform: 'translateX(0)'
}
},
'scale-in': {
'0%': {
opacity: '0',
transform: 'scale(0.9)'
},
'100%': {
opacity: '1',
transform: 'scale(1)'
}
},
'glow-pulse': {
'0%, 100%': {
boxShadow: '0 0 20px rgba(59, 130, 246, 0.5)',
},
'50%': {
boxShadow: '0 0 40px rgba(147, 51, 234, 0.8)',
}
},
'float': {
'0%, 100%': {
transform: 'translateY(0px)',
},
'50%': {
transform: 'translateY(-10px)',
}
},
'gradient-shift': {
'0%, 100%': {
backgroundPosition: '0% 50%',
},
'50%': {
backgroundPosition: '100% 50%',
}
},
// Workshop-specific animations
'path-draw': {
'0%': {
strokeDashoffset: '1',
},
'100%': {
strokeDashoffset: '0',
}
},
'node-pulse': {
'0%, 100%': {
opacity: '1',
transform: 'scale(1)',
},
'50%': {
opacity: '0.8',
transform: 'scale(1.05)',
}
},
'card-hover': {
'0%': {
transform: 'scale(1) translateY(0)',
boxShadow: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
},
'100%': {
transform: 'scale(1.02) translateY(-4px)',
boxShadow: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
}
},
'progress-fill': {
'0%': {
width: '0%',
},
'100%': {
width: '100%',
}
},
'stagger-fade': {
'0%': {
opacity: '0',
transform: 'translateY(20px)',
},
'100%': {
opacity: '1',
transform: 'translateY(0)',
}
},
'skill-unlock': {
'0%': {
opacity: '0',
transform: 'scale(0.8) rotate(-5deg)',
},
'50%': {
transform: 'scale(1.1) rotate(2deg)',
},
'100%': {
opacity: '1',
transform: 'scale(1) rotate(0deg)',
}
},
'timeline-reveal': {
'0%': {
opacity: '0',
transform: 'translateX(-50px)',
},
'100%': {
opacity: '1',
transform: 'translateX(0)',
}
},
'badge-pop': {
'0%': {
opacity: '0',
transform: 'scale(0)',
},
'50%': {
transform: 'scale(1.2)',
},
'100%': {
opacity: '1',
transform: 'scale(1)',
}
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'fade-in': 'fade-in 0.5s ease-out',
'fade-out': 'fade-out 0.5s ease-out',
'text-shimmer': 'text-shimmer 2.5s ease-in-out infinite',
'slide-up': 'slide-up 0.6s ease-out',
'slide-in-left': 'slide-in-left 0.6s ease-out',
'slide-in-right': 'slide-in-right 0.6s ease-out',
'scale-in': 'scale-in 0.5s ease-out',
'glow-pulse': 'glow-pulse 3s ease-in-out infinite',
'float': 'float 3s ease-in-out infinite',
'gradient-shift': 'gradient-shift 5s ease-in-out infinite',
// Workshop animations
'path-draw': 'path-draw 2s ease-out forwards',
'node-pulse': 'node-pulse 2s ease-in-out infinite',
'card-hover': 'card-hover 0.3s ease-out forwards',
'progress-fill': 'progress-fill 1.5s ease-out forwards',
'stagger-fade': 'stagger-fade 0.6s ease-out forwards',
'skill-unlock': 'skill-unlock 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards',
'timeline-reveal': 'timeline-reveal 0.8s ease-out forwards',
'badge-pop': 'badge-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards',
},
// Animation delay utilities
animationDelay: {
'0': '0ms',
'75': '75ms',
'100': '100ms',
'150': '150ms',
'200': '200ms',
'300': '300ms',
'400': '400ms',
'500': '500ms',
'700': '700ms',
'1000': '1000ms',
},
// Perspective utilities for 3D transforms
perspective: {
'none': 'none',
'500': '500px',
'1000': '1000px',
'1500': '1500px',
'2000': '2000px',
},
backgroundSize: {
'300%': '300%',
'400%': '400%',
}
}
},
plugins: [
require("tailwindcss-animate"),
require("@tailwindcss/typography"),
// Custom plugin for animation utilities
function({ matchUtilities, theme }: any) {
matchUtilities(
{
'animation-delay': (value: string) => ({
'animation-delay': value,
}),
},
{ values: theme('animationDelay') }
);
matchUtilities(
{
'perspective': (value: string) => ({
'perspective': value,
}),
},
{ values: theme('perspective') }
);
},
// Animation fill mode utilities
function({ addUtilities }: any) {
addUtilities({
'.animation-fill-none': {
'animation-fill-mode': 'none',
},
'.animation-fill-forwards': {
'animation-fill-mode': 'forwards',
},
'.animation-fill-backwards': {
'animation-fill-mode': 'backwards',
},
'.animation-fill-both': {
'animation-fill-mode': 'both',
},
});
},
],
} satisfies Config;