Skip to content

Commit e58c9fd

Browse files
authored
temp fix for xarray dark reprs (#329)
1 parent 45c33a6 commit e58c9fd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_static/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
.bd-header-announcement {
22
background-color: var(--pst-color-accent);
33
}
4+
5+
/* workaround Pydata Sphinx theme using light colors for widget cell outputs in dark-mode */
6+
/* works for many widgets but not for Xarray html reprs */
7+
/* https://github.com/pydata/pydata-sphinx-theme/issues/2189 */
8+
html[data-theme="dark"] div.cell_output .text_html:has(div.xr-wrap) {
9+
background-color: var(--pst-color-on-background) !important;
10+
color: var(--pst-color-text-base) !important;
11+
}

0 commit comments

Comments
 (0)