From d3ce6b1c0ca3345c1407482a25cc088fded6c4e3 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Wed, 2 Oct 2024 16:41:15 +0300 Subject: [PATCH] feat(core): add `color-scheme` by default for `tuiTheme` (#9315) --- projects/core/styles/theme/palette.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/core/styles/theme/palette.less b/projects/core/styles/theme/palette.less index 22f3faba3d13..fc4b13462c01 100644 --- a/projects/core/styles/theme/palette.less +++ b/projects/core/styles/theme/palette.less @@ -1,4 +1,6 @@ [tuiTheme='dark'] { + color-scheme: dark; + // Backgrounds --tui-background-base: #222; --tui-background-base-alt: #333; @@ -45,6 +47,10 @@ --tui-text-negative-hover: #bb593a; } +[tuiTheme='light'] { + color-scheme: light; +} + &:root, [tuiTheme='light'] { // Backgrounds