From b35590f1bd2b65b165841e2df35d8bcc9611fb09 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sat, 6 Aug 2022 19:58:41 +0200 Subject: [PATCH] css now respects dark mode --- web/style.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/web/style.css b/web/style.css index 56ecb46..95970ca 100644 --- a/web/style.css +++ b/web/style.css @@ -98,3 +98,20 @@ body.dark-theme { body.dark-theme a:visited { color: blueviolet; } + +@media (prefers-color-scheme: dark) { + body { + --table-border-color: #222; + --table-background-color: #333; + --text-color: #eee; + background-color: #111; + } + + body a:visited { + color: blueviolet; + } + + body a { + color: darkturquoise; + } +}