-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
294 lines (291 loc) · 11 KB
/
tailwind.config.ts
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
// tailwind.config.ts
import type { Config } from 'tailwindcss';
import animate from 'tailwindcss-animate';
// const config = {
const config: Config = {
// darkMode: 'class',
darkMode: 'class', // This enables class-based dark mode important line;
content: [
'./pages/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
],
prefix: '',
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px',
},
},
extend: {
fontFamily: {
sans: ['var(--font-montserrat)', 'system-ui', 'sans-serif'],
montserrat: ['var(--font-montserrat)', 'system-ui', 'sans-serif'],
urbanist: ['var(--font-urbanist)', 'system-ui', 'sans-serif'],
},
colors: {
// Catto Colors
// delete next 3 lines after testing
// 'catto-bg-default': 'hsl(var(--catto-bg-default))',
// 'bg-catto-bg-default': 'hsl(var(--catto-bg-default))',
// 'catto-text-default': 'hsl(var(--catto-text-default))',
// bgtest: 'hsl(var(--bgtest))',
catto: {
// Rz Brand Colors - Dark blue
'bg-default': 'hsl(var(--catto-bg-default))',
'text-default': 'hsl(var(--catto-text-default))',
'catto-secondary': 'hsl(var(--catto-bg-secondary))',
'bright-orange': 'hsl(var(--catto-bright-orange))',
primary: {
50: 'hsl(var(--catto-primary-50))',
100: 'hsl(var(--catto-primary-100))',
200: 'hsl(var(--catto-primary-200))',
300: 'hsl(var(--catto-primary-300))',
400: 'hsl(var(--catto-primary-400))',
500: 'hsl(var(--catto-primary-500))',
600: 'hsl(var(--catto-primary-600))',
700: 'hsl(var(--catto-primary-700))',
800: 'hsl(var(--catto-primary-800))',
900: 'hsl(var(--catto-primary-900))',
950: 'hsl(var(--catto-primary-950))',
},
secondary: {
50: 'hsl(var(--catto-secondary-50))',
100: 'hsl(var(--catto-secondary-100))',
200: 'hsl(var(--catto-secondary-200))',
300: 'hsl(var(--catto-secondary-300))',
400: 'hsl(var(--catto-secondary-400))',
500: 'hsl(var(--catto-secondary-500))',
600: 'hsl(var(--catto-secondary-600))',
700: 'hsl(var(--catto-secondary-700))',
800: 'hsl(var(--catto-secondary-800))',
900: 'hsl(var(--catto-secondary-900))',
950: 'hsl(var(--catto-secondary-950))',
},
neutral: {
50: 'hsl(var(--catto-neutral-50))',
100: 'hsl(var(--catto-neutral-100))',
200: 'hsl(var(--catto-neutral-200))',
300: 'hsl(var(--catto-neutral-300))',
400: 'hsl(var(--catto-neutral-400))',
500: 'hsl(var(--catto-neutral-500))',
600: 'hsl(var(--catto-neutral-600))',
700: 'hsl(var(--catto-neutral-700))',
800: 'hsl(var(--catto-neutral-800))',
900: 'hsl(var(--catto-neutral-900))',
950: 'hsl(var(--catto-neutral-950))',
},
button: {
default: 'hsl(var(--catto-button-default))',
'default-foreground': 'hsl(var(--catto-button-default-foreground))',
primary: 'hsl(var(--catto-button-primary))',
'primary-foreground': 'hsl(var(--catto-button-primary-foreground))',
// ... other button variants
secondary: 'hsl(var(--catto-button-secondary))',
'secondary-foreground':
'hsl(var(--catto-button-secondary-foreground))',
ghost: 'hsl(var(--catto-button-ghost))',
'ghost-foreground': 'hsl(var(--catto-button-ghost-foreground))',
destructive: 'hsl(var(--catto-button-destructive))',
'destructive-foreground':
'hsl(var(--catto-button-destructive-foreground))',
},
/* Table colors */
table: {
header: 'hsl(var(--catto-table-header))',
'header-foreground': 'hsl(var(--catto-table-header-foreground))',
row: 'hsl(var(--catto-table-row))',
'row-foreground': 'hsl(var(--catto-table-row-foreground))',
'row-alternate': 'hsl(var(--catto-table-row-alternate))',
'row-odd': 'hsl(var(--catto-table-row-odd))',
border: 'hsl(var(--catto-table-border))',
hover: 'hsl(var(--catto-table-hover))',
},
/* Card colors */
card: {
background: 'hsl(var(--catto-card-background))',
foreground: 'hsl(var(--catto-card-foreground))',
border: 'hsl(var(--catto-card-border))',
},
input: {
background: 'hsl(var(--catto-input-background))',
foreground: 'hsl(var(--catto-input-foreground))',
border: 'hsl(var(--catto-input-border))',
placeholder: 'hsl(var(--catto-input-placeholder))',
disabled: 'hsl(var(--catto-input-disabled))',
},
surface: {
background: 'hsl(var(--catto-surface-background))',
foreground: 'hsl(var(--catto-surface-foreground))',
muted: 'hsl(var(--catto-surface-muted))',
'muted-foreground': 'hsl(var(--catto-surface-muted-foreground))',
accent: 'hsl(var(--catto-surface-accent))',
'accent-foreground': 'hsl(var(--catto-surface-accent-foreground))',
},
border: 'hsl(var(--catto-border))',
ring: 'hsl(var(--catto-ring))',
// // #todo replace with HSL Info colors aligned with dark blue
info: {
50: '#f0f5ff',
100: '#e6ebff',
200: '#bfceff',
300: '#99b1ff',
400: '#4d74ff',
500: '#1a47ff',
600: '#0033ff',
700: '#0029cc',
800: '#001f99',
900: '#001466',
950: '#000a33',
},
},
// Classic Colors
google: {
'text-gray': '#3c4043',
'button-blue': '#1a73e8',
'button-blue-hover': '#5195ee',
'button-dark': '#202124',
'button-dark-hover': '#555658',
'button-border-light': '#dadce0',
'logo-blue': '#4285f4',
'logo-green': '#34a853',
'logo-yellow': '#fbbc05',
'logo-red': '#ea4335',
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))',
},
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))',
},
},
keyframes: {
accordionDown: {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
accordionUp: {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
bounce: {
'0%, 100%': {
transform: 'translateY(0)',
animationTimingFunction: 'cubic-bezier(0.8, 0, 1, 1)',
},
'50%': {
transform: 'translateY(-25%)',
animationTimingFunction: 'cubic-bezier(0, 0, 0.2, 1)',
},
},
bounceIn: {
'0%': { transform: 'scale(0.7)', opacity: '0' },
'70%': { transform: 'scale(1.1)', opacity: '0.8' },
'100%': { transform: 'scale(1)', opacity: '1' },
},
explode: {
'0%': { transform: 'scale(1)', opacity: '1' },
'50%': { transform: 'scale(1.5)', opacity: '0.8' },
'100%': { transform: 'scale(3)', opacity: '0' },
},
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
growShrink: {
'0%, 100%': { transform: 'scale(1)' },
'50%': { transform: 'scale(1.5)' },
},
pulse: {
'0%, 100%': { transform: 'scale(1)' },
'50%': { transform: 'scale(1.05)', filter: 'brightness(110%)' },
},
shrink: {
'0%': { transform: 'scale(1)' },
'50%': { transform: 'scale(0.85)' },
'100%': { transform: 'scale(1)' },
},
slideIn: {
'0%': { transform: 'translateX(100%)', opacity: '0' },
'100%': { transform: 'translateX(0)', opacity: '1' },
},
spinClock: {
to: { transform: 'rotate(360deg)' },
},
tada: {
'0%': { transform: 'scale(1)' },
'10%, 20%': { transform: 'scale(0.9) rotate(-3deg)' },
'30%, 50%, 70%, 90%': { transform: 'scale(1.1) rotate(3deg)' },
'40%, 60%, 80%': { transform: 'scale(1.1) rotate(-3deg)' },
'100%': { transform: 'scale(1) rotate(0)' },
},
wobble: {
'0%': { transform: 'translateX(0)' },
'15%': { transform: 'translateX(-12px) rotate(-5deg)' },
'30%': { transform: 'translateX(10px) rotate(3deg)' },
'45%': { transform: 'translateX(-8px) rotate(-3deg)' },
'60%': { transform: 'translateX(6px) rotate(2deg)' },
'75%': { transform: 'translateX(-4px) rotate(-1deg)' },
'100%': { transform: 'translateX(0)' },
},
},
animation: {
accordionDown: 'accordion-down 0.2s ease-out',
accordionUp: 'accordion-up 0.2s ease-out',
bounce: 'bounce 1s ease-in-out',
bounceIn: 'bounceIn 0.4s ease-out',
explode: 'explode 1s ease-out',
fadeIn: 'fadeIn 0.3s ease-out',
growShrink: 'growShrink 1.5s ease-in-out infinite',
pulse: 'pulse 1s ease-in-out',
shrink: 'shrink 0.5s ease-in-out',
slideIn: 'slideIn 0.3s ease-out',
spinMinute: 'spinClock 2s linear infinite',
spinHour: 'spinClock 15s linear infinite',
tada: 'tada 1s ease-in-out',
wobble: 'wobble 1s ease-in-out',
},
// commented out Jan 26 2025 - let us remove after it does not break anything - it is used in old inputSelect component
// borderRadius: {
// lg: 'var(--radius)',
// md: 'calc(var(--radius) - 2px)',
// sm: 'calc(var(--radius) - 4px)',
// },
},
},
// safelist: [
// 'catto-bg-secondary'
// ],
plugins: [animate],
} satisfies Config;
export default config;