-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
82 lines (80 loc) · 2.86 KB
/
tailwind.config.ts
File metadata and controls
82 lines (80 loc) · 2.86 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
import type { Config } from 'tailwindcss';
const config: Config = {
content: [
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
coup: {
bg: '#0f1419',
surface: '#1a2332',
card: '#243447',
accent: '#e6a817',
duke: '#9b59b6',
assassin: '#2c3e50',
captain: '#2980b9',
ambassador: '#27ae60',
contessa: '#e74c3c',
gold: '#f1c40f',
},
},
animation: {
'flip': 'flip 0.6s ease-in-out',
'slide-up': 'slideUp 0.3s ease-out',
'fade-in': 'fadeIn 0.3s ease-out',
'pulse-gold': 'pulseGold 2s ease-in-out infinite',
'coin-float': 'coinFloat 1.2s ease-out forwards',
'challenge-card-in': 'challengeCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards',
'challenge-card-out': 'challengeCardOut 0.8s ease-in forwards',
'card-from-deck': 'cardFromDeck 0.6s ease-out forwards',
'reaction-pop': 'reactionPop 3s ease-out forwards',
},
keyframes: {
flip: {
'0%': { transform: 'rotateY(0deg)' },
'50%': { transform: 'rotateY(90deg)' },
'100%': { transform: 'rotateY(0deg)' },
},
slideUp: {
'0%': { transform: 'translateY(20px)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' },
},
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
pulseGold: {
'0%, 100%': { boxShadow: '0 0 0 0 rgba(230, 168, 23, 0.4)' },
'50%': { boxShadow: '0 0 0 8px rgba(230, 168, 23, 0)' },
},
coinFloat: {
'0%': { transform: 'translateY(0)', opacity: '1' },
'100%': { transform: 'translateY(-20px)', opacity: '0' },
},
challengeCardIn: {
'0%': { transform: 'scale(0)', opacity: '0' },
'70%': { transform: 'scale(1.1)', opacity: '1' },
'100%': { transform: 'scale(1)', opacity: '1' },
},
challengeCardOut: {
'0%': { transform: 'scale(1) translate(0, 0)', opacity: '1' },
'100%': { transform: 'scale(0.3) translate(80px, -120px)', opacity: '0' },
},
cardFromDeck: {
'0%': { transform: 'scale(0.3) translate(80px, -120px)', opacity: '0' },
'100%': { transform: 'scale(1) translate(0, 0)', opacity: '1' },
},
reactionPop: {
'0%': { transform: 'translateX(-50%) scale(0.5)', opacity: '0' },
'10%': { transform: 'translateX(-50%) scale(1.15)', opacity: '1' },
'20%': { transform: 'translateX(-50%) scale(1)', opacity: '1' },
'80%': { transform: 'translateX(-50%) scale(1)', opacity: '1' },
'100%': { transform: 'translateX(-50%) scale(0.9)', opacity: '0' },
},
},
},
},
plugins: [],
};
export default config;