From f6237e1356248668693f1cc34c7515a8e6a52e41 Mon Sep 17 00:00:00 2001 From: Gadzhi Gadzhiev Date: Fri, 12 Apr 2024 18:28:44 +0300 Subject: [PATCH] fix(theme): add option for controlling :root color-scheme (#1468) Co-authored-by: Mr.Dr.Professor Patrick --- styles/styles.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/styles/styles.scss b/styles/styles.scss index 0c349db210..a2425301c5 100644 --- a/styles/styles.scss +++ b/styles/styles.scss @@ -63,3 +63,13 @@ background-position: 0 0; } } + +:root:has(body.g-root_theme_light), +:root:has(body.g-root_theme_light-hc) { + color-scheme: light; +} + +:root:has(body.g-root_theme_dark), +:root:has(body.g-root_theme_dark-hc) { + color-scheme: dark; +}