Skip to content

Commit fe2110c

Browse files
Add color-scheme to the root styling (#4477) (#4488)
Signed-off-by: Miki <miki@amazon.com> (cherry picked from commit 021671a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 17902a4 commit fe2110c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/server/rendering/views/styles.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export const Styles: FunctionComponent<Props> = ({ darkMode }) => {
4343
<style
4444
dangerouslySetInnerHTML={{
4545
__html: `
46+
:root {
47+
color-scheme: ${darkMode ? 'dark' : 'light'};
48+
}
4649
4750
*, *:before, *:after {
4851
box-sizing: border-box;

0 commit comments

Comments
 (0)