Skip to content

Commit

Permalink
Fix automatic dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
atjn committed Sep 23, 2024
1 parent 6f281a6 commit 93c9999
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/theme/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
}

@media (prefers-color-scheme: dark) {
.light.no-js {
html:has(.no-js) {
--bg: hsl(200, 7%, 8%);
--fg: #98a3ad;

Expand Down Expand Up @@ -299,6 +299,8 @@
--searchresults-li-bg: #2b2b2f;
--search-mark-bg: #355c7d;

--color-scheme: dark;

/* Same as `--icons` */
--copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg) brightness(87%) contrast(82%);
/* Same as `--sidebar-active` */
Expand Down

0 comments on commit 93c9999

Please sign in to comment.