-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.js
140 lines (140 loc) · 3.69 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
module.exports = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
'./src/layouts/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class',
theme: {
screens: {
xs: '640px',
sm: '768px',
md: '950px',
lg: '1200px',
xl: '1300px',
'2xl': '1440px',
'3xl': '1650px',
'4xl': '1780px',
'5xl': '2160px', // only need to control product grid mode in ultra 4k device
},
extend: {
colors: {
brand: 'rgb(var(--color-brand))',
body: '#0D0F14',
dark: '#0D0F14',
newdark: '#0D0F14',
'light-dark': '#0D0F14',
'light-gray': '#24262C',
'sidebar-body': '#F8FAFC',
primary: '#92ABFB',
'primary-green1': '#33A9A2',
'primary-green2': '#3EB3B7',
'new-red': '#FA9090',
'new-blue': '#2A4B6B',
'new-green': '#90FAC7',
},
spacing: {
13: '3.375rem',
},
margin: {
'1/2': '50%',
},
padding: {
full: '100%',
},
width: {
'calc-320': 'calc(100% - 320px)',
'calc-358': 'calc(100% - 358px)',
},
fontFamily: {
body: ['Fira Code', 'monospace'],
},
fontSize: {
'5xs': ['5px', '9px'],
'4xs': ['7px', '11px'],
'3xs': ['9px', '13px'],
'2xs': ['11px', '15px'],
'13px': ['13px', '18px'],
},
borderWidth: {
3: '3px',
},
boxShadow: {
main: '0px 6px 18px rgba(0, 0, 0, 0.04)',
light: '0px 4px 4px rgba(0, 0, 0, 0.08)',
large: '0px 8px 16px rgba(17, 24, 39, 0.1)',
card: '0px 2px 6px rgba(0, 0, 0, 0.06)',
transaction: '0px 8px 16px rgba(17, 24, 39, 0.06)',
expand: '0px 0px 50px rgba(17, 24, 39, 0.2)',
button:
'0px 2px 4px rgba(0, 0, 0, 0.06), 0px 4px 6px rgba(0, 0, 0, 0.1)',
},
dropShadow: {
main: '0px 4px 8px rgba(0, 0, 0, 0.08)',
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
},
animation: {
blink: 'blink 1.4s infinite both;',
'move-up': 'moveUp 500ms infinite alternate',
'scale-up': 'scaleUp 500ms infinite alternate',
'drip-expand': 'expand 500ms ease-in forwards',
'drip-expand-large': 'expand-large 600ms ease-in forwards',
'move-up-small': 'moveUpSmall 500ms infinite alternate',
},
keyframes: {
blink: {
'0%': { opacity: 0.2 },
'20%': { opacity: 1 },
'100%': { opacity: 0.2 },
},
expand: {
'0%': {
opacity: 0,
transform: 'scale(1)',
},
'30%': {
opacity: 1,
},
'80%': {
opacity: 0.5,
},
'100%': {
transform: 'scale(30)',
opacity: 0,
},
},
'expand-large': {
'0%': {
opacity: 0,
transform: 'scale(1)',
},
'30%': {
opacity: 1,
},
'80%': {
opacity: 0.5,
},
'100%': {
transform: 'scale(96)',
opacity: 0,
},
},
moveUp: {
'0%': { transform: 'translateY(0)' },
'100%': { transform: 'translateY(-20px)' },
},
moveUpSmall: {
'0%': { transform: 'translateY(0)' },
'100%': { transform: 'translateY(-10px)' },
},
scaleUp: {
'0%': { transform: 'scale(0)' },
'100%': { transform: 'scale(1)' },
},
},
},
},
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
};