
Learn how to make your images automatically adapt to light and dark themes on GitHub README using Markdown and HTML, especially for company/project...
For further actions, you may consider blocking this person and/or reporting abuse
Theme aware! 🎨
Yes 🙌
Do you need to add a
:light
in here as well? To specify the image for the light theme?So, one will be chosen as the default, and the other will be activated when on a dark theme. But yes, you can manually specify dark and light by having two source tags.
Really useful
Thank you
I love this post, it's concise and useful!
Thank you. Usefulness was the goal here.
nice post
Thank you
Hah, this was simpler. I use neutral colors like gray-500 with a transparent png to match things.
Well you could have vibecoded a react framework instead.
Thanks for this super useful short little post! I've often wondered how to do this.
You're welcome.