chore(example): set color-cheme (#3493)

This allows the unstyled user agent elements (like the checkbox) match the selected theme colors
This commit is contained in:
Tony
2026-07-16 21:31:40 +08:00
committed by GitHub
parent d6e0b6bbb1
commit cdfd462955
3 changed files with 19 additions and 9 deletions
+7
View File
@@ -2,6 +2,13 @@
line-height: 1.5;
}
:root.dark {
color-scheme: dark;
}
:root.light {
color-scheme: light;
}
*:not(h1, h2, h3, h4, h5, h6) {
margin: 0;
padding: 0;