git » gofer » commit 89f5709

debug: Dark mode on the home page

author Alberto Bertogli
2022-10-13 22:49:09 UTC
committer Alberto Bertogli
2022-10-13 22:49:09 UTC
parent 0892ab6998d023ffa52ab1ce55f66dbb18e22510

debug: Dark mode on the home page

This patch adds a minimal dark mode CSS to the home page, for
convenience.

debug/debug.go +7 -0

diff --git a/debug/debug.go b/debug/debug.go
index 26671fc..fb69d16 100644
--- a/debug/debug.go
+++ b/debug/debug.go
@@ -107,6 +107,13 @@ var htmlIndex = template.Must(
   body {
     font-family: sans-serif;
   }
+  @media (prefers-color-scheme: dark) {
+    body {
+      background: #121212;
+	  color: #c9d1d9;
+	}
+	a { color: #44b4ec; }
+  }
 </style>
 </head>