-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
39 lines (38 loc) · 1.17 KB
/
tailwind.config.js
File metadata and controls
39 lines (38 loc) · 1.17 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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'media',
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
keyframes: {
wave: {
'0%': { transform: 'rotate(0deg)' },
'10%': { transform: 'rotate(14deg)' },
'20%': { transform: 'rotate(-8deg)' },
'30%': { transform: 'rotate(14deg)' },
'40%': { transform: 'rotate(-4deg)' },
'50%': { transform: 'rotate(10deg)' },
'60%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(0deg)' },
},
shake: {
'0%, 100%': { transform: 'translateX(0)' },
'20%': { transform: 'translateX(-8px)' },
'40%': { transform: 'translateX(8px)' },
'60%': { transform: 'translateX(-8px)' },
'80%': { transform: 'translateX(8px)' },
},
glow: {
'0%, 100%': { boxShadow: '0 0 16px 4px #4ade80' }, // green glow
'50%': { boxShadow: '0 0 32px 8px #4ade80' },
}
},
animation: {
wave: 'wave 2s infinite',
shake: 'shake 0.4s',
glow: 'glow 1s ease-in-out',
},
},
},
plugins: [],
}