From 21b0373131384f88b7fd152b43b7e8e52f55633e Mon Sep 17 00:00:00 2001 From: Gabriel Date: Sat, 20 Jan 2024 20:43:19 -0500 Subject: [PATCH] update theme dark mode --- static/theme.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/static/theme.css b/static/theme.css index dc9daa3..6ee2418 100644 --- a/static/theme.css +++ b/static/theme.css @@ -8,6 +8,17 @@ body { --theme-primary: white; --theme-secondary: black; max-width: 100vw; + background-color: var(--theme-primary); + color: var(--theme-secondary); +} + +@media screen and (prefers-color-scheme:dark) { + body { + --theme-accent: rgb(255, 226, 158); + --theme-accent2: rgb(77, 3, 3); + --theme-primary: rgb(23, 23, 23); + --theme-secondary: rgb(255, 255, 255); + } } header { @@ -112,7 +123,7 @@ footer { } footer a { - color: white; + color: var(--theme-accent2); } hr {