Skip to content

Commit 0fb8970

Browse files
DubzerGuillaumeGomez
authored andcommitted
Specify color-scheme for each theme
1 parent 723fc59 commit 0fb8970

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/style/_themes.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Standard white theme
22
html {
3+
color-scheme: light;
34
--color-background-code: #f5f5f5;
45
--color-background: #fff;
56
--input-color: #000;
@@ -35,6 +36,7 @@ html {
3536
// block below and change the colors
3637

3738
html[data-theme="dark"] {
39+
color-scheme: dark;
3840
--color-background-code: #2a2a2a;
3941
--color-background: #353535;
4042
--input-color: #111;
@@ -67,6 +69,7 @@ html[data-theme="dark"] {
6769
}
6870

6971
html[data-theme="ayu"] {
72+
color-scheme: dark;
7073
--color-background-code: #191f26;
7174
--color-background: #0f1419;
7275
--input-color: #c5c5c5;

0 commit comments

Comments
 (0)