HTML » Provide dark and light mode versions of images
<picture>
<source media="(prefers-color-scheme: dark)" srcset="dark.png"/>
<source media="(prefers-color-scheme: light)" srcset="light.png"/>
<img src="default.png" alt="...">
</picture>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="dark.png"/>
<source media="(prefers-color-scheme: light)" srcset="light.png"/>
<img src="default.png" alt="...">
</picture>