diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-05-09 18:46:47 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-05-09 18:46:47 +0200 |
commit | b8e90ea5ea7c41444d7fbce6848e4c3cf37c87e5 (patch) | |
tree | 537a000c7bf5da9aeb9e1510b492d9fdb00fbf45 /public/global.css | |
parent | c8921aba257e663541d0758da100d63e15af25a6 (diff) |
add dark mode
Diffstat (limited to 'public/global.css')
-rw-r--r-- | public/global.css | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/public/global.css b/public/global.css index cbe8d1c..e3fcea0 100644 --- a/public/global.css +++ b/public/global.css @@ -9,11 +9,21 @@ --fg-alt: #111111; } +@media (prefers-color-scheme: dark) { + :root { + --bg: #000000; + --bg-alt: #222222; + --fg: #dddddd; + --fg-alt: #ffffff; + } +} + body, html { background-color: var(--bg); color: var(--fg); margin: 0; font-family: "Inter", "Neue Haas Grotesk", "Helvetica", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif; + color-scheme: light dark; } .limwidth { |