Skip to content

Commit

Permalink
fix: add the appropriate color-scheme for dark mode (#2480)
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-ext authored Jan 11, 2024
1 parent c757710 commit 0442dcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bskyweb/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
--text: white;
--background: black;
--backgroundLight: #26272D;
color-scheme: dark;
}
@media (prefers-color-scheme: light) {
html.colorMode--system {
Expand All @@ -62,6 +63,7 @@
--text: white;
--background: black;
--backgroundLight: #26272D;
color-scheme: dark;
}
}

Expand Down
2 changes: 2 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
--text: white;
--background: black;
--backgroundLight: #26272D;
color-scheme: dark;
}
@media (prefers-color-scheme: light) {
html.colorMode--system {
Expand All @@ -66,6 +67,7 @@
--text: white;
--background: black;
--backgroundLight: #26272D;
color-scheme: dark;
}
}

Expand Down

0 comments on commit 0442dcc

Please sign in to comment.