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
:lightin 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.
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.
nice post
Thank you
Really useful
Thank you
I love this post, it's concise and useful!
Thank you. Usefulness was the goal here.
Thanks for this super useful short little post! I've often wondered how to do this.
You're welcome.