-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
executable file
·127 lines (127 loc) · 3.3 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
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: '500px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1440px',
'3xl': '1780px',
'4xl': '2160px', // only need to control product grid mode in ultra 4k device
},
extend: {
colors: {
brand: 'rgb(var(--color-brand) / <alpha-value>)',
body: '#fcfcfc',
dark: '#0D1321',
'light-dark': '#171e2e',
'sidebar-body': '#F8FAFC',
},
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: {
'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')],
};