forked from leftbrainit/nolococss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles-shadcn.css
453 lines (401 loc) · 11.9 KB
/
styles-shadcn.css
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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
/* <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/akraut1/noloco@refs/heads/main/styles-shadcn.css"> */
<style>
/* Light mode variables */
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
--radius: 0.5rem;
/* Custom gray spectrum for light mode */
--gray-50: 240 5% 96%;
--gray-100: 240 4.8% 94%;
--gray-200: 240 5.9% 90%;
--gray-300: 240 5.2% 84%;
--gray-400: 240 5% 65%;
--gray-500: 240 3.7% 44%;
--gray-600: 240 5.3% 26%;
--gray-700: 240 5.9% 10%;
--gray-800: 240 3.7% 15.9%;
--gray-900: 240 5.9% 10%;
/* Role-based badge colors */
/* Admin - Royal Purple */
--admin-from: 272 90% 60%;
--admin-to: 272 85% 65%;
--admin-border: 272 90% 40%;
/* Account Executive - Deep Teal */
--account-exec-from: 180 75% 45%;
--account-exec-to: 180 70% 50%;
--account-exec-border: 180 75% 35%;
/* Loan Processor - Rich Amber */
--loan-processor-from: 43 96% 50%;
--loan-processor-to: 43 90% 55%;
--loan-processor-border: 43 96% 40%;
/* Loan Opener - Vibrant Indigo */
--loan-opener-from: 231 83% 60%;
--loan-opener-to: 231 78% 65%;
--loan-opener-border: 231 83% 50%;
}
/* Dark mode variables */
.dark {
--background: 224 71% 4%;
--foreground: 213 31% 91%;
--card: 224 71% 4%;
--card-foreground: 213 31% 91%;
--popover: 224 71% 4%;
--popover-foreground: 215 20.2% 65.1%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 1.2%;
--secondary: 222.2 47.4% 11.2%;
--secondary-foreground: 210 40% 98%;
--muted: 223 47% 11%;
--muted-foreground: 215.4 16.3% 56.9%;
--accent: 216 34% 17%;
--accent-foreground: 210 40% 98%;
--destructive: 0 63% 31%;
--destructive-foreground: 210 40% 98%;
--border: 216 34% 17%;
--input: 216 34% 17%;
--ring: 216 34% 17%;
/* Adjust colors for dark mode */
--admin-from: 272 70% 45%;
--admin-to: 272 65% 50%;
--admin-border: 272 70% 35%;
--account-exec-from: 180 65% 35%;
--account-exec-to: 180 60% 40%;
--account-exec-border: 180 65% 25%;
--loan-processor-from: 43 86% 45%;
--loan-processor-to: 43 80% 50%;
--loan-processor-border: 43 86% 35%;
--loan-opener-from: 231 73% 45%;
--loan-opener-to: 231 68% 50%;
--loan-opener-border: 231 73% 35%;
/* Refined gray spectrum for dark mode - using zinc theme values */
--gray-50: 240 5% 98%; /* Lightest */
--gray-100: 240 5% 96%;
--gray-200: 240 4% 90%;
--gray-300: 240 5% 84%;
--gray-400: 240 5% 65%;
--gray-500: 240 5% 50%;
--gray-600: 240 5% 34%;
--gray-700: 240 5% 26%;
--gray-800: 240 4% 16%;
--gray-900: 240 6% 10%; /* Darkest */
}
[data-testid="project-canvas"] {
background-color: hsl(var(--background)) !important;
color: hsl(var(--foreground));
}
/* Override Tailwind gray classes */
.bg-gray-50 {
background-color: hsl(var(--gray-50)) !important;
}
.bg-gray-100 {
background-color: hsl(var(--gray-100)) !important;
}
.bg-gray-200 {
background-color: hsl(var(--gray-200)) !important;
}
.bg-gray-300 {
background-color: hsl(var(--gray-300)) !important;
}
.bg-gray-400 {
background-color: hsl(var(--gray-400)) !important;
}
.bg-gray-500 {
background-color: hsl(var(--gray-500)) !important;
}
.bg-gray-600 {
background-color: hsl(var(--gray-600)) !important;
}
.bg-gray-700 {
background-color: hsl(var(--gray-700)) !important;
}
.bg-gray-800 {
background-color: hsl(var(--gray-800)) !important;
}
.bg-gray-900 {
background-color: hsl(var(--gray-900)) !important;
}
.text-gray-50 {
color: hsl(var(--gray-50)) !important;
}
.text-gray-100 {
color: hsl(var(--gray-100)) !important;
}
.text-gray-200 {
color: hsl(var(--gray-200)) !important;
}
.text-gray-300 {
color: hsl(var(--gray-300)) !important;
}
.text-gray-400 {
color: hsl(var(--gray-400)) !important;
}
.text-gray-500 {
color: hsl(var(--gray-500)) !important;
}
.text-gray-600 {
color: hsl(var(--gray-600)) !important;
}
.text-gray-700 {
color: hsl(var(--gray-700)) !important;
}
.text-gray-800 {
color: hsl(var(--gray-800)) !important;
}
.text-gray-900 {
color: hsl(var(--gray-900)) !important;
}
/* Buttons */
a.new-button whitespace-nowrap {
background-color: hsl(var(--primary)) !important;
padding: 8px 16px;
gap: 8px;
justify-content: center;
align-items: center;
border-radius: hsl(var(border-radius-6px));
border: 1px solid hsl(var(--input));
box-shadow: var(--box-shadow-sm), 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}
[data-testid="action-button"] {
border-radius: var(--radius);
padding: 0.5rem 1rem;
font-size: 0.75rem;
line-height: 1rem;
transition: all 150ms;
}
[data-testid="action-button"].bg-gray-700 {
background-color: hsl(var(--gray-700));
color: hsl(var(--secondary-foreground));
border-color: hsl(var(--border));
opacity: 0.5;
}
[data-testid="action-button"].bg-gray-700:hover {
background-color: hsl(var(--gray-700));
opacity: 0.9;
}
[data-testid="action-button"].bg-red-500 {
background-color: hsl(var(--destructive));
color: hsl(var(--destructive-foreground));
}
/* Table Styles */
.collection-view-table {
--table-bg: hsl(var(--background));
--table-border-color: hsl(var(--border));
}
.collection-view-table > div {
background-color: hsl(var(--gray-50)) !important;
border-color: hsl(var(--table-border-color)) !important;
border-radius: var(--radius);
}
.dark .collection-view-table > div {
background-color: hsl(var(--gray-900)) !important;
}
.collection-view-table thead th.table-fixed {
background-color: hsl(var(--muted)) !important;
color: hsl(var(--muted-foreground));
font-weight: 500;
}
.collection-view-table tbody tr {
border-bottom: 1px solid hsl(var(--border));
}
.collection-view-table tbody tr:hover {
background-color: hsl(var(--accent)) !important;
}
/* Role Badges */
/* Base badge styles */
[data-testid="field-cell"] span.rounded {
padding: 0.375rem 0.875rem;
border-radius: 0.75rem;
font-weight: 500;
font-size: 0.75rem;
letter-spacing: 0.025em;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid transparent;
background-clip: padding-box;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
}
[data-testid="field-cell"] span.rounded:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* Role-specific styles */
[data-testid="field-cell"] span.rounded:has(div:contains("Admin")) {
background: linear-gradient(135deg, hsla(var(--admin-from), 0.9), hsla(var(--admin-to), 0.8));
border-color: hsla(var(--admin-border), 0.3);
color: hsl(var(--background));
}
[data-testid="field-cell"] span.rounded:has(div:contains("Account Executive")) {
background: linear-gradient(135deg, hsla(var(--account-exec-from), 0.9), hsla(var(--account-exec-to), 0.8));
border-color: hsla(var(--account-exec-border), 0.3);
color: hsl(var(--background));
}
[data-testid="field-cell"] span.rounded:has(div:contains("Loan Processor")) {
background: linear-gradient(135deg, hsla(var(--loan-processor-from), 0.9), hsla(var(--loan-processor-to), 0.8));
border-color: hsla(var(--loan-processor-border), 0.3);
color: hsl(var(--background));
}
[data-testid="field-cell"] span.rounded:has(div:contains("Loan Opener")) {
background: linear-gradient(135deg, hsla(var(--loan-opener-from), 0.9), hsla(var(--loan-opener-to), 0.8));
border-color: hsla(var(--loan-opener-border), 0.3);
color: hsl(var(--background));
}
/* Group header count badges */
[data-testid="collection-group-header"] span.rounded {
background: hsla(var(--muted), 0.8);
border: 1px solid hsla(var(--border), 0.3);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
/* Navigation Sidebar */
[data-testid="navigation-sidebar"] {
background-color: hsl(var(--gray-100)) !important;
border-right: 1px solid hsl(var(--border));
}
.dark [data-testid="navigation-sidebar"] {
background-color: hsl(var(--gray-800)) !important;
border-right: 1px solid hsl(var(--border));
}
[data-testid="sidebar-nav-item"] > div > a {
color: hsl(var(--muted-foreground));
transition: color 0.2s;
}
[data-testid="sidebar-nav-item"] > div > a:hover {
color: hsl(var(--foreground));
background-color: hsl(var(--accent));
}
[data-testid="sidebar-nav-item"] > div > a.bg-nlc_primary-900 {
background-color: hsl(var(--accent)) !important;
color: hsl(var(--accent-foreground)) !important;
}
/* Dark Mode Toggle */
[data-testid="dark-mode-switch"] {
background-color: hsl(var(--secondary));
color: hsl(var(--secondary-foreground));
border-color: hsl(var(--border));
}
/* Group Headers */
[data-testid="collection-group-header"] {
background-color: hsl(var(--muted));
border-color: hsl(var(--border));
}
[data-testid="collection-group-header"] .text-gray-400 {
color: hsl(var(--muted-foreground));
}
/* Force override any existing background colors */
.dark [data-testid="project-canvas"],
.dark .bg-gray-900,
.dark [class*="bg-gray-900"] {
background-color: hsl(var(--gray-900)) !important;
}
/* Override Tailwind slate backgrounds */
.dark .bg-slate-800,
.dark .bg-slate-900,
.dark [class*="bg-slate-"],
.dark div[class*="bg-slate-"] {
background-color: hsl(var(--gray-900)) !important;
}
/* Target the specific flex container causing the blue background */
.dark .flex.h-screen.w-full.flex-col.overflow-hidden.bg-slate-800 {
background-color: hsl(var(--gray-900)) !important;
}
/* Additional slate background overrides */
.dark [class*="bg-slate-800"],
.dark [class*="bg-slate-900"] {
background-color: hsl(var(--gray-900)) !important;
}
/* Header specific override */
.dark [data-testid="header"],
.dark header,
.dark .header {
background-color: hsl(var(--gray-900)) !important;
border-bottom: 1px solid hsl(var(--border));
}
/* Main content area override */
.dark main,
.dark .main-content {
background-color: hsl(var(--gray-900)) !important;
}
/* Additional specific overrides for any remaining blue backgrounds */
.dark [class*="bg-blue"],
.dark [class*="bg-indigo"],
.dark [style*="background-color: rgb(30, 41, 59)"],
.dark [style*="background-color: #1e293b"] {
background-color: hsl(var(--gray-900)) !important;
}
/* Ensure text colors are properly contrasted */
.dark .text-gray-100 {
color: hsl(var(--gray-100)) !important;
}
.dark .text-gray-200 {
color: hsl(var(--gray-200)) !important;
}
.dark .text-gray-300 {
color: hsl(var(--gray-300)) !important;
}
.dark .text-gray-400 {
color: hsl(var(--gray-400)) !important;
}
/* Add !important to all existing gray background classes to ensure they override */
.dark .bg-gray-50 {
background-color: hsl(var(--gray-50)) !important;
}
.dark .bg-gray-100 {
background-color: hsl(var(--gray-100)) !important;
}
.dark .bg-gray-200 {
background-color: hsl(var(--gray-200)) !important;
}
.dark .bg-gray-300 {
background-color: hsl(var(--gray-300)) !important;
}
.dark .bg-gray-400 {
background-color: hsl(var(--gray-400)) !important;
}
.dark .bg-gray-500 {
background-color: hsl(var(--gray-500)) !important;
}
.dark .bg-gray-600 {
background-color: hsl(var(--gray-600)) !important;
}
.dark .bg-gray-700 {
background-color: hsl(var(--gray-700)) !important;
}
.dark .bg-gray-800 {
background-color: hsl(var(--gray-800)) !important;
}
.dark .bg-gray-900 {
background-color: hsl(var(--gray-900)) !important;
}
/* Add specific attribute selectors for inline styles */
.dark [style*="background-color"] {
background-color: hsl(var(--gray-900)) !important;
}
/* Responsive Design */
@media (max-width: 768px) {
[data-testid="record-view-body"] {
padding: 0.75rem;
}
.collection-view-table .collection-filter input {
width: 100%;
}
}
</style>