Skip to content

Commit 792dad7

Browse files
authored
Update default-required.scss
1 parent 437fa24 commit 792dad7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/foundations/scss/defaults/default-required.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
}
3333
}
3434

35+
// We'll set the color scheme (https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme) to light and dark if it's not already set as a meta tag in the head, which would be the recommended way.
36+
html:not(:has([name="color-scheme"])) {
37+
color-scheme: light dark;
38+
}
39+
3540
/* TODO: Switch to attr() as soon as this one is fully supported */
3641
[data-mode="light"] {
3742
color-scheme: light;

0 commit comments

Comments
 (0)