-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
CSS/SCSSrequires change to CSS/SCSS filesrequires change to CSS/SCSS filesHTMLrequires change to HTML filesrequires change to HTML filesUX/UIdesign, user experience, user interfacedesign, user experience, user interfacefeature requesthelp neededWe'd love volunteers to advise on or help fix/implement this.We'd love volunteers to advise on or help fix/implement this.
Description
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
- https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#specifying-the-theme-an-image-is-shown-to
- chore: Fix dark mode logo in readme getsentry/sentry-python#1342
- Support GitHub theme-conditional images in README / Marketplace page microsoft/vscode#139556
- https://github.saobby.my.eu.orgmunity/t/support-theme-context-for-images-in-light-vs-dark-mode/147981
edgarrmondragon, KotlinIsland, DetachHead, sdebruyn, AdrianoKF and 1 more
Metadata
Metadata
Assignees
Labels
CSS/SCSSrequires change to CSS/SCSS filesrequires change to CSS/SCSS filesHTMLrequires change to HTML filesrequires change to HTML filesUX/UIdesign, user experience, user interfacedesign, user experience, user interfacefeature requesthelp neededWe'd love volunteers to advise on or help fix/implement this.We'd love volunteers to advise on or help fix/implement this.