From 879833419dd6aa8256b16feae6c82940bf53d972 Mon Sep 17 00:00:00 2001 From: Scott Henderson <3924836+scottyhq@users.noreply.github.com> Date: Mon, 7 Jul 2025 14:33:59 +0200 Subject: [PATCH] temp fix for xarray dark reprs --- _static/style.css | 8 ++++++++ 1 file changed, 8 insertions(+) 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; +}