Skip to content

Commit c046e51

Browse files
authored
temp fix xarray repr dark mode (pydata theme) (#13)
1 parent 54877e7 commit c046e51

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/_static/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@
1212
.gp {
1313
color: darkorange;
1414
}
15+
16+
/* workaround Pydata Sphinx theme using light colors for widget cell outputs in dark-mode */
17+
/* works for many widgets but not for Xarray html reprs */
18+
/* https://github.com/pydata/pydata-sphinx-theme/issues/2189 */
19+
html[data-theme="dark"] div.cell_output .text_html:has(div.xr-wrap) {
20+
background-color: var(--pst-color-on-background) !important;
21+
color: var(--pst-color-text-base) !important;
22+
}

0 commit comments

Comments
 (0)