From 78c415820cb3937bb0d2a49785cc5bcd24f2ab5d Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 21 Sep 2024 22:32:31 +0200 Subject: [PATCH] Fix automatic dark mode --- src/theme/css/variables.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/theme/css/variables.css b/src/theme/css/variables.css index afa974eb8d..6c19eab362 100644 --- a/src/theme/css/variables.css +++ b/src/theme/css/variables.css @@ -258,7 +258,7 @@ } @media (prefers-color-scheme: dark) { - .light.no-js { + .light:has(.no-js) { --bg: hsl(200, 7%, 8%); --fg: #98a3ad; @@ -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` */