-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.js
265 lines (264 loc) · 8.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
const colors = require('tailwindcss/colors')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
'./src/views/**/*.{js,ts,jsx,tsx}'
],
darkMode: 'class',
theme: {
boxShadow: {
black: '0 0 0 2px #212325',
gray: '0 0 0 2px #21232514',
bigGray: '0 0 0 4px #11121514',
darkgray: '0 0 0 2px #21232514',
xl: '0 4px 24px rgba(33, 35, 37, 0.12)',
lg: '0 2px 16px rgba(0, 0, 0, 0.08)',
md: '0 2px 4px 0 rgba(33, 35, 37, 0.08)'
},
extend: {
spacing: {
modal: '640px'
},
borderWidth: {
6: '6px'
},
fontSize: {
'12': '12px',
'13': '13px',
'15': '15px',
'16': '16px',
'3xl': '28px'
},
colors: {
current: 'currentColor',
acid: {
DEFAULT: '#00FF60'
},
green: {
// todo: remove various green
// only (34, 208, 102, *) will be used
...colors.emerald,
100: '#22D066',
200: '#03D954',
light: '#61bb80',
DEFAULT: '#418859',
640: 'rgba(34, 208, 102, 0.64)'
},
blue: '#3F5DFF',
coal: {
DEFAULT: '#111215',
80: 'rgba(17, 18, 21, 0.08)',
120: 'rgba(17, 18, 21, 0.12)',
160: 'rgba(17, 18, 21, 0.16)',
240: 'rgba(17, 18, 21, 0.24)',
500: 'rgba(17, 18, 21, 0.5)',
640: 'rgba(17, 18, 21, 0.64)',
800: 'rgba(17, 18, 21, 0.8)'
},
darkblack: {
DEFAULT: '#000000'
},
black: {
DEFAULT: '#212325',
40: 'rgba(33, 35, 37, 0.04)',
80: 'rgba(33, 35, 37, 0.08)',
120: 'rgba(33, 35, 37, 0.12)',
160: 'rgba(33, 35, 37, 0.16)',
240: 'rgba(33, 35, 37, 0.24)',
400: 'rgba(33, 35, 37, 0.4)',
500: 'rgba(33, 35, 37, 0.5)',
640: 'rgba(33, 35, 37, 0.64)',
800: 'rgba(33, 35, 37, 0.8)'
},
white: {
DEFAULT: '#FFFFFF',
40: 'rgba(255, 255, 255, 0.04)',
80: 'rgba(255, 255, 255, 0.08)',
120: 'rgba(255, 255, 255, 0.12)',
160: 'rgba(255, 255, 255, 0.16)',
240: 'rgba(255, 255, 255, 0.24)',
400: 'rgba(255, 255, 255, 0.4)',
480: 'rgba(255, 255, 255, 0.48)',
500: 'rgba(255, 255, 255, 0.5)',
640: 'rgba(255, 255, 255, 0.64)',
800: 'rgba(255, 255, 255, 0.8)'
},
red: {
DEFAULT: '#fd4a4a',
light: 'rgba(253, 74, 74, 0.32)',
640: 'rgba(253, 74, 74, 0.64)'
},
gray: {
DEFAULT: '#565859',
100: 'rgba(33, 35, 37, 0.04)',
200: 'rgba(33, 35, 37, 0.08)',
300: 'rgba(33, 35, 37, 0.12)'
},
violet: {
DEFAULT: '#6F3FF5',
dark: '#4C2AAA'
},
turquoise: {
DEFAULT: '#00FEC0'
},
invalid: {
DEFAULT: 'rgba(253, 74, 74, 0.64)'
},
activated: {
DEFAULT: '#03D954'
},
success: {
DEFAULT: 'rgba(153, 247, 189, 1)',
800: 'rgba(153, 247, 189, 0.8)'
},
dangerous: {
DEFAULT: 'rgba(255, 171, 171, 1)',
800: 'rgba(255, 171, 171, 0.8)'
}
},
backgroundImage: {
'green-gradient': 'linear-gradient(to right, #1FAB58, #22D066, #1FAB58)',
'action-gradient':
'radial-gradient(50% 50% at 50% 50%, rgba(34, 208, 102, 0) 72.06%, #22D066 72.06%, rgba(34, 208, 102, 0) 100%)',
'success-gradient': 'linear-gradient(60.27deg, rgba(0, 240, 255, 0.5) 27.73%, #00FF66 62.84%)',
'error-gradient': 'linear-gradient(60.27deg, rgba(0, 102, 255, 0.3) 27.73%, #FF0909 62.84%)',
'history-gradient': 'linear-gradient(180deg, rgba(17, 18, 21, 0.04) 0, rgba(17, 18, 21, 0) 40px)',
'history-gradient-dark': 'linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0) 100%)',
'demo-routes': 'linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%)'
},
height: {
17: '68px'
},
width: {
150: '600px',
300: '300px'
},
keyframes: {
loading: {
'0%': {
strokeDashoffset: 100,
stroke: '#61BB80'
},
'100%': {
strokeDashoffset: 25,
stroke: '#61BB80'
}
},
rotate: {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' }
},
slide: {
'0%': { transform: 'translateX(-200%)' },
'100%': { transform: 'translateX(0)' }
},
slideBottom: {
'0%': { transform: 'translateX(-50%) translateY(100%)' },
'100%': { transform: 'translateX(-50%) translateY(0)' }
},
progress: {
'0%': { 'background-position-x': '0%' },
'100%': { 'background-position-x': '200%' }
},
progressHide: {
'0%': { opacity: 1 },
'100%': { opacity: 0 }
},
opacity: {
'0%': { opacity: 0 },
'100%': { opacity: 1 }
},
opacityInfinity: {
'0%': { opacity: 0 },
'80%': { opacity: 1 },
'100%': { opacity: 0 }
},
opacityOpen: {
'0%': { opacity: 0, transform: 'translateY(-8px)' },
'50%': { opacity: 0, transform: 'translateY(-8px)' },
'100%': { opacity: 1, transform: 'translateY(0)' }
},
opacityClose: {
'0%': { opacity: 1, transform: 'translateY(0)' },
'100%': { opacity: 0, transform: 'translateY(-8px)' }
},
fillBg: {
'0%': { width: '2%' },
'100%': { width: '85%' }
},
fillBgComplete: {
'0%': { width: 'var(--computed-width)' },
'100%': { width: '100%' }
},
bounce: {
'0%, 100%': { transform: 'translateY(-100%)', animationTimingFunction: 'cubic-bezier(0.8, 0, 1, 1)' },
'50%': { transform: 'translateY(0)', animationTimingFunction: 'cubic-bezier(0, 0, 0.2, 1)' }
},
action: {
'0%, 100%': { transform: 'scale(1)', opacity: 1 },
'35%': { transform: 'scale(1.3)', opacity: 0.1 }
},
gradientMove: {
'0%': {
backgroundPosition: '10% 0%'
},
'25%': {
backgroundPosition: '91% 100%'
},
'50%': {
backgroundPosition: '10% 0%'
},
'100%': { backgroundPosition: '10% 0%' }
},
bgPartOpacity: {
'0%': { opacity: '20%' },
'100%': { opacity: '50%' }
},
bgPartPosition: {
'0%': { transform: 'translate(-150px, 0px) scale(0.8)' },
'25%': { transform: 'translate(0px, 150px) scale(1.0)' },
'50%': { transform: 'translate(150px, 0px) scale(1.2)' },
'75%': { transform: 'translate(0px, -150px) scale(1.0)' },
'100%': { transform: 'translate(-150px, -0px) scale(0.8)' }
}
},
animation: {
loading: 'loading 15s ease-in-out infinite',
rotate: 'rotate 0.8s linear',
slide: 'slide 0.4s ease-out',
slideBottom: 'slideBottom 0.4s ease-out',
pulse: 'pulse 0.8s cubic-bezier(0.4, 0, 0.6, 1) infinite',
progress: 'progress 1.5s linear infinite',
progressHide: 'progressHide 150ms ease-in 150ms 1 normal forwards',
opacity: 'opacity 0.4s ease-out',
opacityInfinity: 'opacityInfinity var(--loading-time) ease-out var(--loading-time) 1 forwards ',
opacityOpen: 'opacityOpen 0.8s ease-out forwards',
opacityClose: 'opacityClose 0.4s ease-out forwards',
fill: 'fillBg var(--loading-time) cubic-bezier(0.4, 0, 0.6, 1) forwards, gradientMove 2.4s linear infinite',
completedFill: 'fillBgComplete 3s cubic-bezier(0.4, 0, 0.6, 1) forwards',
action: 'action 1.3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
appear: 'opacity 0.25s linear',
bgPart1:
'bgPartOpacity 8s ease-in-out -8s infinite alternate, bgPartPosition 20s ease-in-out -3s infinite alternate',
bgPart2:
'bgPartOpacity 8s ease-in-out 0s infinite alternate, bgPartPosition 20s ease-in-out -17s infinite alternate',
bgPart3:
'bgPartOpacity 8s ease-in-out -4s infinite alternate, bgPartPosition 20s ease-in-out -14s infinite alternate',
bgPart4:
'bgPartOpacity 8s ease-in-out -12s infinite alternate, bgPartPosition 20s ease-in-out -7s infinite alternate'
},
screens: {
screen1180: { max: '1180px' }
},
transitionProperty: {
height: 'max-height'
},
zIndex: {
'-10': '-10'
}
}
},
plugins: []
}