Skip to content

Detect dark mode in Colab CSS #1214

@shoyer

Description

@shoyer

Is there a standard way (e.g., CSS variables) to detect dark mode in Colab?

I'd like the my HTML reprs to look good in both light and dark mode

(e.g., see pydata/xarray#4024 for a similar issue with VSCode)

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