Skip to content

Commit

Permalink
Add color-scheme to the root styling
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Jul 1, 2023
1 parent 3f357b5 commit 597620b
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 597620b

Please sign in to comment.