Skip to content

Commit 1caf13e

Browse files
authored
Merge pull request #1696 from hrx01-dev/fix/dual-color-on-darktheme
fix dual color on dark theme
2 parents 3bc446c + 92b43db commit 1caf13e

1 file changed

Lines changed: 20 additions & 14 deletions

File tree

src/css/custom.css

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -493,27 +493,33 @@ body {
493493
}
494494

495495
[data-theme="dark"] {
496-
--ifm-color-primary: #3cad6e;
497-
--ifm-color-primary-dark: #359962;
498-
--ifm-color-primary-darker: #33925d;
499-
--ifm-color-primary-darkest: #2e8555;
500-
--ifm-color-primary-light: #4db981;
501-
--ifm-color-primary-lighter: #6dc998;
502-
--ifm-color-primary-lightest: #b1e2c5;
496+
--ifm-background-color: #000000;
497+
--ifm-background-surface-color: #0a0a0a;
498+
--ifm-navbar-background-color: #000000;
499+
--ifm-footer-background-color: #000000;
500+
--ifm-toc-border-color: #2a2a2a;
501+
--ifm-menu-color-background-active: #111111;
502+
--ifm-color-primary: #60a5fa;
503+
--ifm-color-primary-dark: #3b82f6;
504+
--ifm-color-primary-darker: #2563eb;
505+
--ifm-color-primary-darkest: #1d4ed8;
506+
--ifm-color-primary-light: #93c5fd;
507+
--ifm-color-primary-lighter: #bfdbfe;
508+
--ifm-color-primary-lightest: #dbeafe;
503509
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
504510

505511
/* Global dark theme tokens used across feature pages (courses, broadcasts, sponsors, etc.) */
506512
/* Backgrounds */
507-
--dark-bg-primary: #0b1220;
508-
/* base page background (deep navy) */
509-
--dark-bg-secondary: #0f172a;
513+
--dark-bg-primary: #000000;
514+
/* base page background (black) */
515+
--dark-bg-secondary: #0a0a0a;
510516
/* section alt background */
511-
--dark-bg-tertiary: #111827;
517+
--dark-bg-tertiary: #111111;
512518
/* subtle surfaces */
513519
/* Cards */
514-
--dark-card-bg: #111827;
520+
--dark-card-bg: #111111;
515521
/* card background */
516-
--dark-card-hover-bg: #0f172a;
522+
--dark-card-hover-bg: #1a1a1a;
517523
/* card hover background */
518524
/* Text */
519525
--dark-text-primary: #e5e7eb;
@@ -2174,7 +2180,7 @@ html[data-theme="dark"] {
21742180
}
21752181

21762182
/* TOC inner wrapper — sticky; border-left here so the vertical line
2177-
only spans the height of the TOC content, not the full page */
2183+
only spans the height of the TOC content, not the full page */
21782184
.blog-wrapper .col.col--2>div {
21792185
position: sticky !important;
21802186
top: calc(var(--ifm-navbar-height, 60px) + 1rem) !important;

0 commit comments

Comments
 (0)