Skip to content

Commit 75367fc

Browse files
authored
fix: add color-theme option to html tag (#1536)
1 parent f1517cd commit 75367fc

File tree

1 file changed

+1
-0
lines changed
  • src/pydata_sphinx_theme/assets/styles/variables

1 file changed

+1
-0
lines changed

src/pydata_sphinx_theme/assets/styles/variables/_color.scss

+1
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ html:not([data-theme]) {
310310
@each $mode in (light, dark) {
311311
html[data-theme="#{$mode}"] {
312312
@include theme-colors($mode);
313+
color-scheme: $mode;
313314
}
314315
}
315316

0 commit comments

Comments
 (0)