Skip to content

Commit

Permalink
fix(theme): add option for controlling :root color-scheme (#1468)
Browse files Browse the repository at this point in the history
Co-authored-by: Mr.Dr.Professor Patrick <[email protected]>
  • Loading branch information
resure and korvin89 authored Apr 12, 2024
1 parent 4a366be commit f6237e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,13 @@
background-position: 0 0;
}
}

:root:has(body.g-root_theme_light),
:root:has(body.g-root_theme_light-hc) {
color-scheme: light;
}

:root:has(body.g-root_theme_dark),
:root:has(body.g-root_theme_dark-hc) {
color-scheme: dark;
}

0 comments on commit f6237e1

Please sign in to comment.