From 09f03a8fea9f85b252afe43aab8a23c51c2f0970 Mon Sep 17 00:00:00 2001 From: Calle Helmertz Date: Thu, 26 Sep 2024 00:00:59 +0200 Subject: [PATCH] feat(css): Dark mode, a bit brown/red/yellow-ish --- internal/server/index.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/internal/server/index.html b/internal/server/index.html index b178e24..9f173c3 100644 --- a/internal/server/index.html +++ b/internal/server/index.html @@ -10,6 +10,7 @@ --muted: #ccc; --positive: #27b427; --negative: #b42727; + --buried: #333; --action: #f8da22; --link: #aa0606; } @@ -126,7 +127,7 @@ } &.buried { - background: #333; + background: var(--buried); } } @@ -154,6 +155,19 @@ justify-content: center; align-items: center; } + + @media (prefers-color-scheme: dark) { + :root { + --bg: #312f2f; + --fg: #e1e1e1; + --muted: #555; + --positive: #27b427; + --negative: #b42727; + --buried: #818080; + --action: #f8da22; + --link: #f8da22; + } + } elly - Github pull request todos