-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
73 lines (72 loc) · 1.78 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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {},
},
plugins: [
function ({ addUtilities }) {
const utilities = {
'.loading': {
position: 'relative',
overflow: 'hidden',
backgroundColor: 'rgb(243 244 246)',
},
'.loading::after': {
display: 'block',
position: 'absolute',
height: '100%',
top: 0,
left: '-10rem',
width: '10rem',
content: "''",
background: 'linear-gradient(to right, transparent 0%, #E8E8E8 50%, transparent 100%)',
animation: 'skeletonloading 1s cubic-bezier(0.4, 0.0, 0.2, 1) infinite',
},
'@keyframes skeletonloading': {
from: {
left: '-10rem',
},
to: {
left: '100%',
},
},
};
addUtilities(utilities);
},
function ({ addUtilities }) {
const utilities = {
'.animate-fade': {
animation: 'fade 0.3s cubic-bezier(0.4, 0.0, 0.2, 1)',
},
'@keyframes fade': {
from: {
opacity: 0,
},
to: {
opacity: 100,
},
},
};
addUtilities(utilities);
},
function ({ addUtilities }) {
const utilities = {
'.animate-popup-from-bottom': {
animation: 'fadeBottom 0.3s cubic-bezier(0.4, 0.0, 0.2, 1)',
},
'@keyframes fadeBottom': {
from: {
opacity: 0,
transform: 'translateY(50px)',
},
to: {
opacity: 1,
transform: 'translateY(0px)',
},
},
};
addUtilities(utilities);
},
],
};