fix: add `color-scheme` to themes

This commit is contained in:
Ryan Cao 2023-02-06 12:58:23 +08:00 committed by GitHub
parent a44ba4abcb
commit 8d51fd8ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -116,3 +116,7 @@
--counter-color: #bbb;
}
html {
color-scheme: dark;
}

View File

@ -116,3 +116,7 @@
--counter-color: #666;
}
html {
color-scheme: light;
}

View File

@ -116,6 +116,10 @@
--counter-color: #666;
}
html {
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root {
--body-color: #efefef;
@ -233,4 +237,8 @@
--counter-color: #bbb;
}
html {
color-scheme: dark;
}
}