Skip to content

Commit

Permalink
Add color-scheme to dark root selector
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Dec 28, 2022
1 parent f9827ac commit 5d9c09c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@

@if $enable-dark-mode {
@include color-mode(dark, true) {
color-scheme: dark;

// scss-docs-start root-dark-mode-vars
--#{$prefix}body-color: #{$body-color-dark};
--#{$prefix}body-color-rgb: #{to-rgb($body-color-dark)};
Expand Down

0 comments on commit 5d9c09c

Please sign in to comment.