-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
118 lines (118 loc) · 2.87 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./context/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
spacing: {
'2xfull': '200%',
},
colors: {
theme: {
purple: '#4d2c56',
'light-orange': '#e9ac8d',
'dark-blue': '#3600e8',
'almost-black': '#111',
'light-pink': '#ffd4de',
thistle: '#c9b0d4',
lime: '#d2f66a',
'midnight-blue': '#172172',
hotpink: '#f76dc2',
},
},
animation: {
width: 'width 5s linear',
scaleIn: 'scaleIn 0.5s ease-in-out forwards',
scaleUp: 'scaleUp 0.5s ease-in-out forwards',
bounceIn: 'bounceIn 0.2s ease-out forwards',
moveUp: 'moveUp 5s ease-in-out forwards',
moveAllRight: 'moveAllRight 3s ease-in-out forwards',
grain: 'grain 8s steps(8) infinite',
},
keyframes: {
grain: {
'0%': { transform: 'translate(0, 0)' },
'5%': { transform: 'translate(10%, -5%)' },
'10%': { transform: 'translate(-5%, 10%)' },
'15%': { transform: 'translate(-10%, -9%)' },
'20%': { transform: 'translate(-2%, 5%)' },
'25%': { transform: 'translate(-15%, -2%)' },
'30%': { transform: 'translate(7%, 15%)' },
'35%': { transform: 'translate(10%, -5%)' },
'40%': { transform: 'translate(-5%, 9%)' },
'45%': { transform: 'translate(3%, -15%)' },
'50%': { transform: 'translate(-15%, 11%)' },
'55%': { transform: 'translate(-5%, -9%)' },
'60%': { transform: 'translate(10%, 5%)' },
'65%': { transform: 'translate(7%, -6%)' },
'70%': { transform: 'translate(-6%, 15%)' },
'75%': { transform: 'translate(5%, 9%)' },
'80%': { transform: 'translate(-3%, -15%)' },
'85%': { transform: 'translate(7%, 6%)' },
'90%': { transform: 'translate(-10%, -5%)' },
'95%': { transform: 'translate(10%, 10%)' },
'100%': { transform: 'translate(5%, -6%)' },
},
width: {
'0%': {
width: '0%',
},
'100%': {
width: '100%',
},
},
moveAllRight: {
'0%': {
transform: 'translateX(0)',
},
'100%': {
transform: 'translateX(calc(-100% + 100vw))',
},
},
moveUp: {
'0%': {
transform: 'translateY(0)',
},
'100%': {
transform: 'translateY(-100vh)',
},
},
scaleIn: {
'0%': {
transform: 'scale(1.1)',
opacity: '0',
},
'100%': {
transform: 'scale(1)',
opacity: '1',
},
},
bounceIn: {
'0%': {
transform: 'scale(1)',
},
'50%': {
transform: 'scale(0.9)',
},
'100%': {
transform: 'scale(1)',
},
},
scaleUp: {
'0%': {
transform: 'scale(0.5)',
opacity: '0',
},
'100%': {
transform: 'scale(1)',
opacity: '1',
},
},
},
},
},
plugins: [require('tailwindcss-animation-delay')],
}