-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtailwind.config.js
228 lines (228 loc) · 7.19 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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: [
'components/**/*.{js,jsx,ts,tsx}',
'pages/**/*.{js,jsx,ts,tsx}',
'node_modules/daisyui/dist/**/*.js',
'node_modules/react-daisyui/dist/**/*.js',
],
theme: {
extend: {
screens: {
'3xl': '2560px',
xxs: '320px',
xs: '375px',
},
boxShadow: {
inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 1)',
clicked: 'inset 0 2px 18px 0 rgba(0, 0, 0, 1)',
'custom-light':
'0 4px 6px -1px var(--shadow-color-light), 0 2px 4px -1px var(--shadow-color-light)',
'custom-dark':
'0 4px 6px -1px var(--shadow-color-dark), 0 2px 4px -1px var(--shadow-color-dark)',
},
animation: {
fadeIn: 'fadeIn 400ms ease-in',
fadeOut: 'fadeOut 400ms ease-out',
fadeSlideUp: 'fadeSlideUp 400ms ease-in',
fadeSlideDown: 'fadeSlideDown 400ms ease-out forwards',
slideFadeInLeft: 'slideFadeInLeft 400ms ease-in',
slideFadeOutRight: 'slideFadeOutRight 400ms ease-out',
slideThumb: 'slideThumb 300ms ease-in-out',
},
keyframes: {
fadeIn: {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
fadeOut: {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
fadeSlideUp: {
'0%': { transform: 'translateY(100%)', opacity: 0 },
'50%': { transform: 'translateY(0%)', opacity: 0.1 },
'75%': { transform: 'translateY(0%)', opacity: 0.5 },
'100%': { transform: 'translateY(0%)', opacity: 1 },
},
slideThumb: {
'0%': { transform: 'translateX(0)' },
'100%': { transform: 'translateX(calc(100% + 0.5rem))' },
},
fadeSlideDown: {
'0%': { transform: 'translateY(-100%)', opacity: 0 },
'100%': { transform: 'translateY(0)', opacity: 1 },
},
slideFadeInLeft: {
'0%': { opacity: 0, transform: 'translateX(50%)' },
'100%': { opacity: 1, transform: 'translateX(0%)' },
},
slideFadeOutRight: {
'0%': { opacity: 0, transform: 'translateX(50%)' },
'100%': { opacity: 1, transform: 'translateX(0%)' },
},
},
fontFamily: {
sans: ['Manrope', 'sans-serif'],
body: ['Manrope', 'sans-serif'],
},
},
},
variants: {
extend: {
backgroundImage: ['hover', 'focus'],
},
},
daisyui: {
themes: [
{
light: {
primary: '#A087FF',
'primary-content': '#161616',
secondary: '#FBFBFF',
'secondary-content': '#161616',
accent: '#30DB5B',
'accent-content': '#161616',
neutral: '#FFFFFF',
'button-gradient': 'linear-gradient(to right, #A087FF, #380CC5)',
'neutral-content': '#FFFFFF',
'base-100': '#FFFFFF',
'base-200': '#F0F0FF',
'base-300': '#F5F5F5',
'base-content': '#161616',
'tooltip-color': '#ffffff',
'background-color': '#F0F0FF',
info: '#3F51B5',
success: '#4CAF50',
warning: '#FFB300',
error: '#E53935',
'--shadow-color-light': 'rgba(0, 0, 0, 0.1)',
},
dark: {
primary: '#A087FF',
'primary-content': '#FFFFFF',
secondary: '#1D192D',
'secondary-content': '#FFFFFF',
accent: '#30DB5B',
'accent-content': '#FFFFFF',
neutral: '#1D192D',
'button-gradient': 'linear-gradient(to right, #A087FF, #380CC5)',
'neutral-content': '#FFFFFF',
'base-100': '#161616',
'base-200': '#1D192D',
'base-300': '#272336',
'base-content': '#FFFFFF',
'tooltip-color': '#ffffff',
'background-color': '#0E0A1F',
info: '#3F51B5',
success: '#4CAF50',
warning: '#FFB300',
error: '#E53935',
'--shadow-color-dark': 'rgba(255, 255, 255, 0.1)',
},
},
],
darkTheme: 'dark',
base: true,
styled: true,
utils: true,
prefix: '',
logs: false,
themeRoot: ':root',
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/forms'),
require('tailwind-scrollbar-hide'),
require('daisyui'),
function ({ addUtilities }) {
const disconnectButton = {
'.btn-disconnect-gradient': {
backgroundImage: 'linear-gradient(98.22deg, #FF8787 -51.92%, #C50C87 103.12%)',
transition: 'all 0.3s ease',
'&:hover:not(:disabled)': {
backgroundImage: 'linear-gradient(98.22deg, #FF9A9A -51.92%, #D61F98 103.12%)',
},
'&:disabled': {
opacity: '0.5',
cursor: 'not-allowed',
border: 'none',
boxShadow: 'none',
},
},
};
const toolTip = {
'.tooltip-primary': {
color: '#FFFFFF',
textColor: '#FFFFFF',
},
};
const errorButton = {
'.btn-error': {
border: 'none',
color: '#FFFFFF',
backgroundColor: '#E53935',
transition: 'all 0.3s ease',
'&:hover:not(:disabled)': {
backgroundColor: '#D32F2F',
},
'&:disabled': {
opacity: '0.5',
cursor: 'not-allowed',
border: 'none',
boxShadow: 'none',
backgroundColor: '#4f1312',
color: '#FFFFFF',
},
},
};
const connectButton = {
'.btn-gradient': {
border: 'none',
color: '#FFFFFF',
backgroundImage: 'linear-gradient(98.22deg, #A087FF -51.92%, #380CC5 103.12%)',
transition: 'all 0.3s ease',
'&:hover:not(:disabled)': {
backgroundImage: 'linear-gradient(98.22deg, #B19AFF -51.92%, #4A1FD6 103.12%)',
},
'&:disabled': {
opacity: '0.5',
cursor: 'not-allowed',
border: 'none',
boxShadow: 'none',
color: '#fffcfc',
cursor: 'not-allowed',
},
},
};
const dropDownBtns = {
'.btn-dropdown': {
backgroundColor: '#E0E0FF0A',
border: '1px solid #00000033',
transition: 'all 0.3s ease',
'@apply dark:bg-[#E0E0FF0A] dark:border-[#FFFFFF33]': {},
'&:hover:not(:disabled)': {
background: '#E0E0FF0A',
boxShadow: '0 0 4px #E0E0FF0A',
border: '1px solid #00000033',
'@apply dark:bg-[#E0E0FF0A] dark:border-[#FFFFFF33] dark:shadow-[0_0_4px_#E0E0FF0A]':
{},
},
'&:disabled': {
opacity: '0.5',
cursor: 'not-allowed',
border: 'none',
boxShadow: 'none',
},
},
};
addUtilities(disconnectButton, ['responsive', 'hover', 'disabled']);
addUtilities(connectButton, ['responsive', 'hover', 'disabled']);
addUtilities(dropDownBtns, ['responsive', 'hover', 'disabled']);
addUtilities(toolTip, ['responsive', 'hover', 'disabled']);
addUtilities(errorButton, ['responsive', 'hover', 'disabled']);
},
],
};