Skip to content

Commit 78c4158

Browse files
committed
Fix automatic dark mode
1 parent 6f281a6 commit 78c4158

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/theme/css/variables.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
}
259259

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

@@ -299,6 +299,8 @@
299299
--searchresults-li-bg: #2b2b2f;
300300
--search-mark-bg: #355c7d;
301301

302+
--color-scheme: dark;
303+
302304
/* Same as `--icons` */
303305
--copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg) brightness(87%) contrast(82%);
304306
/* Same as `--sidebar-active` */

0 commit comments

Comments
 (0)