-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
89 lines (86 loc) · 2.48 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
const {
DefaultRouteMatcherManager,
} = require('next/dist/server/future/route-matcher-managers/default-route-matcher-manager');
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
screens: {
xs: '320px',
...defaultTheme.screens,
},
extend: {
colors: {
base: {
darkMd: '#212939',
md: '#84878B',
semiMd: '#A9ADB5',
light: '#D9D8DE',
spLight: '#F0F2F5',
DEFAULT: '#101622',
},
errorRed: {
DEFAULT: '#E8361E',
},
},
keyframes: {
fadeIn: {
from: { opacity: '0' },
to: { opacity: '1' },
},
fadeOut: {
from: { opacity: '1' },
to: { opacity: '0' },
},
growSm: {
from: { transform: 'scale(0.96)' },
to: { transform: 'scale(1)' },
},
shrinkSm: {
from: { transform: 'scale(1)' },
to: { transform: 'scale(0.96)' },
},
growMd: {
from: { transform: 'scale(0.87)' },
to: { transform: 'scale(1)' },
},
shrinkMd: {
from: { transform: 'scale(1)' },
to: { transform: 'scale(0.87)' },
},
topDown: {
from: { transform: 'translateY(-1rem)' },
to: { transform: 'translateY(0)' },
},
downTop: {
from: { transform: 'translateY(0)' },
to: { transform: 'translateY(-1rem)' },
},
aboutHeight: {
from: { maxHeight: '0' },
to: { maxHeight: '64rem' },
},
},
animation: {
contentShow:
'fadeIn 0.15s ease-in, growSm 0.15s ease-in, topDown 0.15s ease-in',
contentHide:
'fadeOut 0.15s ease-in, shrinkSm 0.15s ease-in, downTop 0.15s ease-in',
overlayShow: 'fadeIn 0.12s ease-in',
overlayHide: 'fadeOut 0.12s ease-in',
aboutShow: 'aboutHeight 0.12s ease-in',
lightBoxShow: 'fadeIn 0.10s ease-in, growMd 0.10s ease-in',
lightBoxHide: 'fadeOut 0.10s ease-in, shrinkMd 0.10s ease-in',
selectButtonsShow:
'fadeIn 0.15s ease-in, growSm 0.15s ease-in, downTop 0.15s ease-in',
selectButtonsHide:
'fadeOut 0.15s ease-in, shrinkSm 0.15s ease-in topDown 0.15s ease-in',
},
},
},
plugins: [],
};