diff --git a/src/index.scss b/src/index.scss index f6f09ed3..f9cb0643 100644 --- a/src/index.scss +++ b/src/index.scss @@ -13,6 +13,7 @@ :root { scroll-behavior: auto; + color-scheme: var(--color-scheme); } html, diff --git a/src/theme/theme.scss b/src/theme/theme.scss index aecf5243..7d797202 100644 --- a/src/theme/theme.scss +++ b/src/theme/theme.scss @@ -31,6 +31,7 @@ $darkBorderInputColor: $darkBorderColor; $darkTableHighlightColor: $darkBorderColor; html:not([data-theme='dark']) { + --color-scheme: initial; --primary-color: #{$lightPrimaryColor}; --primary-color-alfa: #{$lightPrimaryColorAlfa}; --secondary-color: #{$lightSecondaryColor}; @@ -48,6 +49,7 @@ html:not([data-theme='dark']) { } html[data-theme='dark'] { + --color-scheme: dark; --primary-color: #{$darkPrimaryColor}; --primary-color-alfa: #{$darkPrimaryColorAlfa}; --secondary-color: #{$darkSecondaryColor};