From e78e60e90c2c6f30d598109572f9b5fa16f75487 Mon Sep 17 00:00:00 2001 From: KlingonDragon Date: Sat, 5 Apr 2025 10:07:51 +0100 Subject: [PATCH] Simple dark mode --- index.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.css b/index.css index 4ef3bbb..2ad939b 100644 --- a/index.css +++ b/index.css @@ -1,3 +1,6 @@ +:root { + color-scheme: light dark; +} /* horizontal flex */ body > div { position: absolute; @@ -44,7 +47,7 @@ input { } .container { - background-color: #eee; + background-color: light-dark(#eee, #222); border-radius: 1em; margin: 1em; } @@ -61,4 +64,4 @@ a.unimportant-link:link, a.unimportant-link:visited { noscript { font-weight: bold; color: darkorange; -} \ No newline at end of file +}