-
Notifications
You must be signed in to change notification settings - Fork 97
/
tailwind.config.js
230 lines (225 loc) · 7.74 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
229
230
//@ts-check
const colors = require("tailwindcss/colors");
const plugin = require('tailwindcss/plugin')
const defaultTheme = require('tailwindcss/defaultTheme')
const round = (num) =>
num
.toFixed(7)
.replace(/(\.[0-9]+?)0+$/, '$1')
.replace(/\.0$/, '')
const rem = (px) => `${round(px / 16)}rem`
const em = (px, base) => `${round(px / base)}em`
module.exports = {
content: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
darkMode: 'media',
theme: {
extend: {
colors: {
coinbase: { primary: '#4a6cee', diabled: '#192445' },
primary: {
DEFAULT: 'rgb(var(--ls-colors-primary, 228, 37, 117), <alpha-value>)',
'50': 'rgb(var(--ls-colors-primary-50, 248, 200, 220), <alpha-value>)',
'100': 'rgb(var(--ls-colors-primary-100, 246, 182, 209), <alpha-value>)',
'200': 'rgb(var(--ls-colors-primary-200, 241, 146, 186), <alpha-value>)',
'300': 'rgb(var(--ls-colors-primary-300, 237, 110, 163), <alpha-value>)',
'400': 'rgb(var(--ls-colors-primary-400, 232, 73, 140), <alpha-value>)',
'500': 'rgb(var(--ls-colors-primary-500, 228, 37, 117), <alpha-value>)',
'600': 'rgb(var(--ls-colors-primary-600, 166, 51, 94), <alpha-value>)',
'700': 'rgb(var(--ls-colors-primary-700, 136, 17, 67), <alpha-value>)',
'800': 'rgb(var(--ls-colors-primary-800, 147, 8, 99), <alpha-value>)',
'900': 'rgb(var(--ls-colors-primary-900, 110, 0, 64), <alpha-value>)',
'background': 'rgb(var(--ls-colors-backdrop, 62, 18, 64), <alpha-value>)',
'text': 'rgb(var(--ls-colors-primary-text, 255, 255, 255), <alpha-value>)',
'text-muted': 'rgb(var(--ls-colors-primary-text-muted, 86, 97, 123), <alpha-value>)',
'text-placeholder': 'rgb(var(--ls-colors-text-placeholder, 140, 152, 192), <alpha-value>)',
'actionButtonText': 'rgb(var(--ls-colors-actionButtonText, 255, 255, 255), <alpha-value>)',
'buttonTextColor': 'rgb(var(--ls-colors-buttonTextColor, 228, 229, 240), <alpha-value>)',
'logoColor': 'rgb(var(--ls-colors-logo, 255, 0, 147), <alpha-value>)',
},
secondary: {
DEFAULT: 'rgb(var(--ls-colors-secondary, 17, 29, 54), <alpha-value>)',
'50': 'rgb(var(--ls-colors-secondary-50, 49, 60, 155), <alpha-value>)',
'100': 'rgb(var(--ls-colors-secondary-100, 46, 59, 147), <alpha-value>)',
'200': 'rgb(var(--ls-colors-secondary-200, 35, 42, 112), <alpha-value>)',
'300': 'rgb(var(--ls-colors-secondary-300, 32, 41, 101), <alpha-value>)',
'400': 'rgb(var(--ls-colors-secondary-400, 28, 39, 89), <alpha-value>)',
'500': 'rgb(var(--ls-colors-secondary-500, 22, 37, 70), <alpha-value>)',
'600': 'rgb(var(--ls-colors-secondary-600, 20, 33, 62), <alpha-value>)',
'700': 'rgb(var(--ls-colors-secondary-700, 17, 29, 54), <alpha-value>)',
'800': 'rgb(var(--ls-colors-secondary-800, 15, 25, 47), <alpha-value>)',
'900': 'rgb(var(--ls-colors-secondary-900, 12, 21, 39), <alpha-value>)',
'950': 'rgb(var(--ls-colors-secondary-900, 11, 17, 35), <alpha-value>)',
'text': 'rgb(var(--ls-colors-secondary-text, 171, 181, 209), <alpha-value>)',
},
},
opacity: {
'35': '.35',
},
transitionDuration: {
'0': '0ms',
'2000': '2000ms',
},
transitionProperty: {
'height': 'height'
},
animation: {
'spin-slow': 'spin 3s linear infinite',
'fade-in': 'fade-in 0.5s ease-in',
'fade-in-down': 'fade-in-down 0.5s ease-in',
'fadein': 'fadein 4s',
'slide-in': 'slide-in 300ms',
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"blinking": "blink 1.1s step-end infinite",
// Tooltip
"slide-up-fade": "slide-up-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1)",
"slide-down-fade": "slide-down-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1)",
// Gauge
gauge_fadeIn: "gauge_fadeIn 1s ease forwards",
gauge_fill: "gauge_fill 1s ease forwards",
},
keyframes: {
"accordion-down": {
from: { height: 0 },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 },
},
'blink': {
'0%': {
color: 'transparent',
},
'50%': {
color: 'white',
},
'100%': {
color: 'transparent',
},
},
'fade-in': {
'0%': {
opacity: '0',
},
'20%': {
opacity: '0.6',
},
'100%': {
opacity: '1',
},
},
'fade-in-down': {
'0%': {
opacity: '0',
transform: 'translateY(-10px)'
},
'100%': {
opacity: '1',
transform: 'translateY(0)'
},
},
'slide-in': {
'0%': {
transform: 'translateY(100%)',
},
'100%': {
transform: 'translateY(0)',
},
},
'slide-out': {
'0%': {
transform: 'translateY(0)',
},
'100%': {
transform: 'translateY(100%)',
},
// Tooltip
"slide-up-fade": {
"0%": { opacity: 0, transform: "translateY(6px)" },
"100%": { opacity: 1, transform: "translateY(0)" },
},
"slide-down-fade": {
"0%": { opacity: 0, transform: "translateY(-6px)" },
"100%": { opacity: 1, transform: "translateY(0)" },
},
},
gauge_fadeIn: {
from: { opacity: "0" },
to: { opacity: "1" },
},
gauge_fill: {
from: { "stroke-dashoffset": "332", opacity: "0" },
to: { opacity: "1" },
},
},
letterSpacing: {
tightest: '-.075em',
tighter: '-.05em',
tight: '-.025em',
normal: '0',
wide: '.025em',
wider: '.05em',
widest: '.1em',
},
boxShadow: {
'widget-footer': '-1px -28px 21px -6px var(--ls-colors-secondary-900, #0C1527)',
'card': '5px 5px 40px rgba(0, 0, 0, 0.2), 0px 0px 200px rgba(0, 0, 0, 0.43)',
},
typography: (theme) => ({
DEFAULT: {
css: {
h1: {
color: '#FFF',
textAlign: 'center',
},
h2: {
color: '#FFF',
textAlign: 'center',
},
h3: {
color: '#FFF',
},
h4: {
color: '#FFF',
},
h5: {
color: '#FFF',
},
a: {
color: theme('colors.primary.400'),
},
strong: {
color: '#FFF'
},
blockquote: {
color: '#FFF'
}
},
}
}),
},
},
variants: {
extend: {
opacity: ["disabled"],
cursor: ["hover", "focus", "disabled"],
backgroundColor: ["disabled"],
translate: ["hover"],
display: ["group-hover"],
fill: ['hover', 'focus']
},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
require("tailwindcss-animate"),
plugin(function ({ addVariant }) {
// Add a `third` variant, ie. `third:pb-0`
addVariant('scrollbar', '&::-webkit-scrollbar');
addVariant('scrollbar-thumb', '&::-webkit-scrollbar-thumb')
addVariant('focus-peer', '.focus-peer &')
addVariant('wide-page', '.wide-page &')
})
],
};