diff --git a/docs/_static/style.css b/docs/_static/style.css index d97a63f..c3e4794 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -12,3 +12,11 @@ .gp { color: darkorange; } + +/* workaround Pydata Sphinx theme using light colors for widget cell outputs in dark-mode */ +/* works for many widgets but not for Xarray html reprs */ +/* https://github.com/pydata/pydata-sphinx-theme/issues/2189 */ +html[data-theme="dark"] div.cell_output .text_html:has(div.xr-wrap) { + background-color: var(--pst-color-on-background) !important; + color: var(--pst-color-text-base) !important; +}