Skip to content

Non-legible Xarray HTML representation in dark mode #2189

Open
@scottyhq

Description

@scottyhq

The documentation example for Xarray isn't legible in dark mode:
https://pydata-sphinx-theme.readthedocs.io/en/v0.16.1/examples/pydata.html#Xarray

I see this came up in the past (#739) but I noticed at least in recent versions, the pandas dataframes look great in either mode, but I think the Xarray representation has gotten worse.

I'm new to CSS but am wondering if it would be easy to fix in the theme here by somehow specifying to "only display Xarray cell outputs with light mode styling". Or should the fix really happen in the Xarray code (pydata/xarray#8097)?

I ask because of noticing the changing appearance with different versions of this theme, I believe without changes on the Xarray side. So it does seem like some coordination is necessary. See for example this older version which wasn't ideal, but I'd argue better than the current rendering:
https://pydata-sphinx-theme.readthedocs.io/en/v0.13.3/examples/pydata.html#xarray

Also, we are finally getting around to upgrading the theme to 0.16.1 in the Xarray docs (pydata/xarray#8708), thanks for all the great work here :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions