-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
176 lines (175 loc) · 4.53 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
const plugin = require('tailwindcss/plugin');
module.exports = {
mode: 'jit',
content: ['./src/**/*.{js,jsx,ts,tsx}', './src/**/*.module.scss', './public/index.html'],
theme: {
extend: {
colors: {
deposit: '#4AFCDC',
withdraw: '#E2AE60',
borrow: '#8ECE5B',
repay: '#e27860',
primary: '#2D2D2D',
primeBlack: 'rgba(45, 45, 45, 0.03)',
grey: {
100: '#F8F8F8',
300: '#D5D5D5',
500: '#959595',
700: '#575757',
900: '#2D2D2D'
},
primePurple: {
100: '#EAE6FF',
300: '#CDC1FF',
500: '#8D78F7',
700: '#634CD9',
900: '#2F2273'
},
success: {
500: '#82CB7C'
},
error: {
500: '#EB6A5D'
},
info: {
500: '#5B6CFE'
},
warn: {
500: '#FFA24E'
}
},
backgroundImage: {
'home-icons': 'url(resources/img/home/home-icons.png)',
home1: 'linear-gradient(0deg, #F4F1FD 0%, #FDFDFF 100%)',
home2: 'linear-gradient(90deg, #F8F7FF 26.08%, #F7F5FE 98.41%)',
swap: 'linear-gradient(0deg, #F7F5FD 0%, #FDFDFF 100%)',
'btn-gradient': 'linear-gradient(268.82deg, #CF9AFA -26.18%, #A192F3 3.15%, #7486F1 83.6%)',
'select-border': 'linear-gradient(90deg, #D483FF 86.1%, #9747FF 95.98%, #6E6CCA 105.2%)'
}
},
screens: {
desktop: { max: '99999px'}, // desktop first
laptop: { max: '1535px'},
tablet: { max: '1279px' },
mobile: { max: '767px' }
},
backgroundColor: theme => ({
...theme('colors'),
primary: '#F6F8FA',
secondary: '#FFFFFF',
prime: '#2D2D2D',
// primeBlack: 'rgba(45, 45, 45, 0.03)',
primeBlack: 'rgba(40, 44, 45, 0.7)',
primeBlackTab: 'rgba(40, 44, 45, 0.97)',
primeBlack50: 'rgba(45, 45, 45, 0.5)',
primeBlack20: 'rgba(45, 45, 45, 0.2)',
primeBlack80: 'rgba(45, 45, 45, 0.8)',
input: '#F8F8F8',
transparent: 'transparent',
primaryGrey: 'rgba(248, 248, 248, 0.8)',
selected: '#F2F1FE',
deposit: '#418E93',
depositHover: '#31767A',
withdraw: '#957547',
withdrawHover: '#8D6E3E',
borrow: '#628944',
borrowHover: '#4E7034',
repay: '#955547',
repayHover: '#764034',
}),
textShadow: {
white: '0px 0px 10px #FFFFFF'
},
boxShadow: {
white: '0px 0px 10px #FFFFFF',
sm: '4px 4px 0px #2D2D2D',
md: '0px 4px 8px rgba(0, 0, 0, 0.25)',
figma: '8px 8px 0px #2D2D2D',
main1: '0px 4px 35px rgba(0, 0, 0, 0.05)',
home: '-4px 8px 32px rgba(211, 207, 230, 0.4)'
},
borderRadius: {
none: '0',
DEFAULT: '4px',
lg: '0.5rem',
xl: '0.75rem',
xxl: '20px',
'2xl': '1rem',
'3xl': '1.25rem',
full: '9999px'
},
fontFamily: {
Urbanist: 'Urbanist, sans-serif',
BioRhyme: 'BioRhyme, serif;',
'BioRhyme-Bold': 'BioRhyme-Bold;',
},
fontSize: {
sm: [
'13px',
{
lineHeight: '16px'
}
],
base: [
'16px',
{
lineHeight: '19px'
}
],
lg: [
'18px',
{
lineHeight: '22px'
}
],
xl: [
'20px',
{
lineHeight: '24px'
}
],
'2xl': [
'24px',
{
lineHeight: '29px'
}
]
}
},
plugins: [
plugin(function ({ addUtilities }) {
addUtilities({
'.no-scrollbar::-webkit-scrollbar': {
display: 'none'
},
'.no-scrollbar': {
'-ms-overflow-style': 'none',
'scrollbar-width': 'none'
},
'.text-gradient-primary': {
background: 'linear-gradient(90.74deg, #5687F8 -17.79%, #7743E6 120.43%)',
'-webkit-background-clip': 'text',
'-webkit-text-fill-color': 'transparent'
},
'.text-gradient-secondary': {
background: 'linear-gradient(273.38deg, #8032FF 19.81%, #472394 87.9%)',
'-webkit-background-clip': 'text',
'-webkit-text-fill-color': 'transparent'
}
});
}),
require('@tailwindcss/line-clamp'),
require('@tailwindcss/aspect-ratio'),
require('tailwindcss-textshadow')
],
future: {
// hoverOnlyWhenSupported: true,
},
variants: {
backgroundColor: ['group-focus'],
boxShadow: ['responsive', 'group-hover', 'focus-within', 'hover', 'focus'],
extend: {
divideColor: ['group-hover'],
}
},
};