Skip to content

Commit

Permalink
Add color-scheme to the root styling (#4477)
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
(cherry picked from commit 021671a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
  • Loading branch information
github-actions[bot] committed Jul 3, 2023
1 parent 29c7abd commit a4650cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/server/rendering/views/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export const Styles: FunctionComponent<Props> = ({ darkMode }) => {
<style
dangerouslySetInnerHTML={{
__html: `
:root {
color-scheme: ${darkMode ? 'dark' : 'light'};
}
*, *:before, *:after {
box-sizing: border-box;
Expand Down

0 comments on commit a4650cd

Please sign in to comment.