You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<picture>
<sourcemedia="(prefers-color-scheme: dark)"srcset="https://raw.githubusercontent.com/GiorgosXou/Random-stuff/main/Programming/StackOverflow/Answers/70200610_11465149/w.png">
<sourcemedia="(prefers-color-scheme: light)"srcset="https://raw.githubusercontent.com/GiorgosXou/Random-stuff/main/Programming/StackOverflow/Answers/70200610_11465149/b.png">
<imgalt="Shows a black logo in light color mode and a white one in dark color mode."src="https://user-images.githubusercontent.com/25423296/163456779-a8556205-d0a5-45e2-ac17-42d089e3c3f8.png">
</picture>
I think this is very useful to include, as some logos look terrible with the wrong background color.
The text was updated successfully, but these errors were encountered:
GitHub actually supports conditional images based on
prefers-color-scheme
.See https://github.com/GiorgosXou/Random-stuff/tree/main/Programming/StackOverflow/Answers/70200610_11465149 for example or their Stackoverflow answer: https://stackoverflow.com/questions/65413712/changing-readme-md-image-display-conditional-to-github-light-mode-dark-mode
But here is a quick copy-paste from their answer:
I think this is very useful to include, as some logos look terrible with the wrong background color.
The text was updated successfully, but these errors were encountered: