Skip to content

Commit

Permalink
fix: Improved contrast for links and yaml highlights in dark mode (#1009
Browse files Browse the repository at this point in the history
)
  • Loading branch information
niallthomson authored Jul 17, 2024
1 parent 5e228fb commit 6f86f38
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions website/src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
--ifm-navbar-background-color: #000716;
--ifm-background-color: #0f1b2a;
--ifm-menu-color: #d1d5db;
--ifm-menu-color-active: #ff9900;
--ifm-breadcrumb-color-active: #ff9900;
--ifm-link-color: #ff9900;
--ifm-tabs-color-active: #ff9900;
--ifm-tabs-color-active-border: #ff9900;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

Expand Down Expand Up @@ -79,6 +84,14 @@
padding: 0 var(--ifm-pre-padding);
}

[data-theme="dark"] .code-block-highlighted-line-even {
background-color: #d1d1d121;
}

[data-theme="dark"] .code-block-highlighted-line-odd {
background-color: #8c949480;
}

.theme-doc-toc-desktop {
display: none;
}
Expand Down Expand Up @@ -205,11 +218,6 @@
color: white;
}

/* Dark mode specific styles */
[data-theme="dark"] img {
box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

[class^="lightToggleIcon"] {
color: white;
}

0 comments on commit 6f86f38

Please sign in to comment.