git » chasquid » commit c3b4cde

monitoring: Add dark mode CSS to the monitoring home page

author Alberto Bertogli
2022-10-19 08:42:30 UTC
committer Alberto Bertogli
2022-10-21 09:12:06 UTC
parent fbb9bed3661705d5c357f9913585c702b0672046

monitoring: Add dark mode CSS to the monitoring home page

monitoring.go +7 -0

diff --git a/monitoring.go b/monitoring.go
index 6f6aab3..2b18ae6 100644
--- a/monitoring.go
+++ b/monitoring.go
@@ -82,6 +82,13 @@ var monitoringHTMLIndex = template.Must(
   body {
     font-family: sans-serif;
   }
+  @media (prefers-color-scheme: dark) {
+    body {
+      background: #121212;
+      color: #c9d1d9;
+    }
+    a { color: #44b4ec; }
+  }
 </style>
 </head>