Skip to content

Github Dark Mode Image Support #11251

Open
@mwarkentin

Description

@mwarkentin

What's the problem this feature will solve?
Github supports rendering a specific image for light vs. dark mode by actually specifying two images. Here's an example PR: getsentry/sentry#33799

However when the .md file is rendered elsewhere (like pypi) it would show up as 2 images.

Describe the solution you'd like
It would be great if pypi could show light mode images only, and hide dark mode images (since pypi doesn't have a dark mode). If pypi ever adds a dark mode feature, it could use the correct image at that time.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSS/SCSSrequires change to CSS/SCSS filesHTMLrequires change to HTML filesUX/UIdesign, user experience, user interfacefeature requesthelp neededWe'd love volunteers to advise on or help fix/implement this.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions