Just discovered this tiny trick on GitHub for markdown files to change an image based on the GitHub theme (light or dark):
html
<picture> <source media="(prefers-color-scheme: dark)" srcset="image-on-dark-theme.png"> <img src="image-on-light-theme.png"> </picture>
commit 5696c9a