Skip to content

Commit a4650cd

Browse files
Add color-scheme to the root styling (#4477)
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
1 parent 29c7abd commit a4650cd

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)