From 6fb1b344f6cab3abca7014eff7ba7729b17d1d33 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Mon, 12 Jul 2021 00:33:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=91=20darkmode=20support=20on=20form?= =?UTF-8?q?=20elements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/app.scss | 6 ++++++ src/assets/vars.scss | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/assets/app.scss b/src/assets/app.scss index dfdae79c5..992323040 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -18,6 +18,12 @@ a, color: #0a0a0a; } +.form-control, +.form-select { + color: var(--main-font-color); + background-color: var(--background-4); +} + #app { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, diff --git a/src/assets/vars.scss b/src/assets/vars.scss index 85f430700..12b8e3745 100644 --- a/src/assets/vars.scss +++ b/src/assets/vars.scss @@ -7,6 +7,8 @@ $highlight: #7ce8a4; $highlight-white: #e7faec; :root { + color-scheme: light dark; + // --page-background: #fafafa; --background-secondary: #d0d3d5; --background-4: #d0d3d5;