Skip to content

Commit 84c8dac

Browse files
committed
Add theme support for stats section and mobile menu
1 parent fcebb53 commit 84c8dac

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/Main.svelte

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@
347347
display: block;
348348
width: 24px;
349349
height: 2px;
350-
background-color: #1a1a1a;
350+
background-color: var(--text-color);
351351
position: relative;
352352
transition: background-color 0.2s ease;
353353
}
@@ -358,7 +358,7 @@
358358
position: absolute;
359359
width: 24px;
360360
height: 2px;
361-
background-color: #1a1a1a;
361+
background-color: var(--text-color);
362362
left: 0;
363363
transition: transform 0.3s ease;
364364
}
@@ -387,8 +387,8 @@
387387
/* Mobile Menu Panel */
388388
.mobile-menu {
389389
display: none;
390-
background: #ffffff;
391-
border-top: 1px solid #e5e7eb;
390+
background: var(--bg-color);
391+
border-top: 1px solid var(--border-color);
392392
padding: 1rem;
393393
}
394394
@@ -398,14 +398,14 @@
398398
gap: 0.5rem;
399399
margin-bottom: 1rem;
400400
padding-bottom: 1rem;
401-
border-bottom: 1px solid #e5e7eb;
401+
border-bottom: 1px solid var(--border-color);
402402
}
403403
404404
.mobile-tab {
405405
padding: 0.75rem 1rem;
406406
border: none;
407407
background: transparent;
408-
color: #6b7280;
408+
color: var(--muted-color);
409409
font-weight: 500;
410410
font-size: 1rem;
411411
cursor: pointer;
@@ -415,13 +415,13 @@
415415
}
416416
417417
.mobile-tab:hover {
418-
background-color: #f3f4f6;
419-
color: #1a1a1a;
418+
background-color: var(--bg-tertiary);
419+
color: var(--text-color);
420420
}
421421
422422
.mobile-tab.active {
423-
background-color: #f3f4f6;
424-
color: #1a1a1a;
423+
background-color: var(--bg-tertiary);
424+
color: var(--text-color);
425425
}
426426
427427
.mobile-links {
@@ -432,7 +432,7 @@
432432
433433
.mobile-link {
434434
padding: 0.75rem 1rem;
435-
color: #1a1a1a;
435+
color: var(--text-color);
436436
text-decoration: none;
437437
font-weight: 500;
438438
font-size: 1rem;
@@ -441,7 +441,7 @@
441441
}
442442
443443
.mobile-link:hover {
444-
background-color: #f3f4f6;
444+
background-color: var(--bg-tertiary);
445445
color: var(--litellm-primary);
446446
}
447447
@@ -478,31 +478,31 @@
478478
}
479479
480480
.stat-card {
481-
background: #fcfcfc;
482-
border: 1px solid #f5f5f5;
481+
background: var(--bg-secondary);
482+
border: 1px solid var(--border-color);
483483
border-radius: 6px;
484484
padding: 0.875rem 0.75rem;
485485
text-align: center;
486486
transition: background-color 0.2s ease, border-color 0.2s ease;
487487
}
488488
489489
.stat-card:hover {
490-
background-color: #fafafa;
491-
border-color: #f0f0f0;
490+
background-color: var(--hover-bg);
491+
border-color: var(--border-color-strong);
492492
}
493493
494494
.stat-value {
495495
font-size: 1.375rem;
496496
font-weight: 600;
497-
color: #1a1a1a;
497+
color: var(--text-color);
498498
line-height: 1;
499499
margin-bottom: 0.25rem;
500500
}
501501
502502
.stat-label {
503503
font-size: 0.6875rem;
504504
font-weight: 500;
505-
color: #9ca3af;
505+
color: var(--muted-color);
506506
text-transform: uppercase;
507507
letter-spacing: 0.04em;
508508
}

0 commit comments

Comments
 (0)