From 647cafaedfc3808d38cbf5ec96859325071dd92f Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 27 Jan 2025 20:48:50 +0100 Subject: [PATCH] Use dark color scheme by default --- share/static/style.css | 13 +++++++++++++ share/templates/index.html | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/share/static/style.css b/share/static/style.css index 23c2198..d54b29e 100644 --- a/share/static/style.css +++ b/share/static/style.css @@ -1,3 +1,16 @@ +body { + background: black; + color: #bbbbbb; +} + +/* Switch to light mode if the user prefers it */ +@media (prefers-color-scheme: light) { + body { + background-color: #ffffff; /* Light background */ + color: #000000; /* Dark text */ + } +} + pre { /* font-family: source_code_proregular; */ diff --git a/share/templates/index.html b/share/templates/index.html index a800b15..83290d3 100644 --- a/share/templates/index.html +++ b/share/templates/index.html @@ -1,6 +1,6 @@ - +