From a7efb4766b396545e89fec55e6b61ef53ff6aeea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 4 Feb 2022 20:25:14 +0100 Subject: [PATCH] [ui] dark mode by default --- webui/src/styles/colors-app.scss | 42 ++++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/webui/src/styles/colors-app.scss b/webui/src/styles/colors-app.scss index be42063..dd813e5 100644 --- a/webui/src/styles/colors-app.scss +++ b/webui/src/styles/colors-app.scss @@ -38,34 +38,34 @@ } } -html { - @include rebase( - colors.$base3, - colors.$base2, - colors.$base1, - colors.$base0, - colors.$base00, - colors.$base01, - colors.$base02, - colors.$base03 - ); -} - -@media (prefers-color-scheme: dark) { +@media (prefers-color-scheme: light) { html { @include rebase( - colors.$base03, - colors.$base02, - colors.$base01, - colors.$base00, - colors.$base0, - colors.$base1, + colors.$base3, colors.$base2, - colors.$base3 + colors.$base1, + colors.$base0, + colors.$base00, + colors.$base01, + colors.$base02, + colors.$base03 ); } } +html { + @include rebase( + colors.$base03, + colors.$base02, + colors.$base01, + colors.$base00, + colors.$base0, + colors.$base1, + colors.$base2, + colors.$base3 + ); +} + html, body { color: var(--foreground);