diff --git a/_static/style.css b/_static/style.css index fb3ae652..6622dee5 100644 --- a/_static/style.css +++ b/_static/style.css @@ -1,3 +1,11 @@ .bd-header-announcement { background-color: var(--pst-color-accent); } + +/* 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; +}