generated from React-Avancado/boilerplate-tailwind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
96 lines (93 loc) · 2.94 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
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
// prettier-ignore
const redZoneLead = [
false, false, true, true, false, false, true, true, //
false, true, false, true, true, false, true, false, //
true, false, true, true, false, false, true, true, //
false, true, false, true, true, false, true, false, //
true, true, false, false, true, true, false, false, //
true, false, true, false, false, true, false, true, //
false, true, false, true, false, false, true, true, //
false, true, false, false, true, false, true, false, //
true, true, false, false, true, true, false, false, //
true, false, true, false, false, true, false, true, //
false, true, false, false, true, true, false, false, //
true, false, true, false, false, true, false, true, //
false, false, true, true, false, false, true, true, //
false, true, false, true, true, false, true, false, //
true, false, true, false, true, true, false, false, //
true, false, true, true, true, true, true, true, //
false,
];
// prettier-ignore
const redZoneBass = [
false, false, true, true, false, false, true, false, //
true, true, false, false, true, true, false, false, //
true, true, false, false, true, true, false, true, //
false, false, true, true, false, false, true, true, //
false,
];
// @param {boolean[]} beats
function redZoning(beats) {
return beats.map((b, i) => {
let key = '';
if (i === i.length - 1) {
key = '100%';
} else {
key = `${(i * 100) / (beats.length - 1)}%`;
}
return {
[key]: { transform: b ? 'scale(-1, 1)' : 'scale(1, 1)' }
};
});
}
module.exports = {
mode: 'jit',
content: ['./src/pages/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
mdmRed: '#b32d38',
mdmBlue: '#1247b3'
},
screens: {
'4xl': '1920px',
sp: '750px'
},
keyframes: {
'fade-in-from-left': {
'0%': {
opacity: '0',
transform: 'translateX(-10px)'
},
'100%': {
opacity: '1',
transform: 'translateX(0)'
}
},
'redzone-left': redZoning(redZoneLead),
'redzone-right': redZoning(redZoneBass),
'keyvisual-float': {
'0%': {
transform: 'translateY(0px)'
},
'50%': {
transform: 'translateY(20px)'
},
'100%': {
transform: 'translateY(0px)'
}
}
},
animation: {
'fade-in-from-left': 'fade-in-from-left 0.2s ease-out',
'evans-left': 'spin 0.5s linear infinite',
'evans-right': 'spin 0.5s linear reverse infinite',
'redzone-left': 'redzone-left 11.636s steps(1, jump-start) infinite',
'redzone-right': 'redzone-right 11.636s steps(1, jump-start) infinite',
'zeus-float': 'keyvisual-float 4s ease-in-out -1s infinite',
'amateras-float': 'keyvisual-float 4s ease-in-out infinite'
}
}
},
plugins: []
};