From 07376d41c3156dbed802e754c6996b53b095842b Mon Sep 17 00:00:00 2001 From: Niklas Buschmann Date: Fri, 2 Aug 2019 14:14:37 +0200 Subject: [PATCH] fix dark mode --- static/css/theme.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/css/theme.css b/static/css/theme.css index 6c67968..c31acee 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1,3 +1,10 @@ +@media (prefers-color-scheme: light) { + html { + background: #fff; + color: #282828; + } +} + @media (prefers-color-scheme: dark) { html { background: #282828; @@ -11,7 +18,6 @@ body { font-size: calc(0.8rem + 0.25vw); font-weight: 400; line-height: 1.65; - color: #282828; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }