-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
46 lines (40 loc) · 1.14 KB
/
tailwind.config.js
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
module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: false, // or 'media' or 'class'
corePlugins: {
// make it so that there are no animations
animation: true,
},
theme: {
colors: {
primary: '#0583F2',
darkPrimary: '#035DAB',
secondary: '#0D0D0D',
background: '#F2F2F2',
},
extend: {
animation: {
'bounce-once': 'bounce 1s 1.5',
jump: 'jump 1s infinite',
kill: 'kill 0.5s 1'
},
keyframes: {
jump: {
'0%, 100%': { transform: 'translateY(0)', animationTimingFunction: 'cubic-bezier(0,0,0.2,1)' },
'50%': { transform: 'translateY(-10%)', animationTimingFunction: 'cubic-bezier(0.8,0,1,1)' }
},
kill: {
'0%,100%': { transform: 'translateY(0)', backgroundColor: 'secondary', animationTimingFunction: 'cubic-bezier(0,0,0.2,1)' },
'50%': { transform: 'translateY(-7%)', animationTimingFunction: 'cubic-bezier(0.8,0,1,1)' },
}
}
},
},
variants: {
extend: {
ringColor: ['hover'],
backgroundColor: ['active']
},
},
plugins: [],
}