about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMary <148872143+mary-ext@users.noreply.github.com>2024-01-11 11:56:21 +0700
committerGitHub <noreply@github.com>2024-01-10 20:56:21 -0800
commit0442dcc1a01a613985155c86a5ee042085553f33 (patch)
treec2231e1eb398ebf5d274c3598cdec5d3b71deaa8
parentc75771047cb49a2cd529f72a2756a456c843a730 (diff)
downloadvoidsky-0442dcc1a01a613985155c86a5ee042085553f33.tar.zst
fix: add the appropriate color-scheme for dark mode (#2480)
-rw-r--r--bskyweb/templates/base.html2
-rw-r--r--web/index.html2
2 files changed, 4 insertions, 0 deletions
diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html
index 55c7c9fd8..57ad064f8 100644
--- a/bskyweb/templates/base.html
+++ b/bskyweb/templates/base.html
@@ -49,6 +49,7 @@
       --text: white;
       --background: black;
       --backgroundLight: #26272D;
+      color-scheme: dark;
     }
     @media (prefers-color-scheme: light) {
       html.colorMode--system {
@@ -62,6 +63,7 @@
         --text: white;
         --background: black;
         --backgroundLight: #26272D;
+        color-scheme: dark;
       }
     }
 
diff --git a/web/index.html b/web/index.html
index 18b985bff..5a56e5f76 100644
--- a/web/index.html
+++ b/web/index.html
@@ -53,6 +53,7 @@
         --text: white;
         --background: black;
         --backgroundLight: #26272D;
+        color-scheme: dark;
       }
       @media (prefers-color-scheme: light) {
         html.colorMode--system {
@@ -66,6 +67,7 @@
           --text: white;
           --background: black;
           --backgroundLight: #26272D;
+          color-scheme: dark;
         }
       }