Much shorter little blog post today: recoloring SVGs on the web. Thanks to @jimmac and @razze, I learned you can include prefers-color-scheme support directly in an SVG used as a favicon! 🤯

https://cassidyjames.com/blog/prefers-color-scheme-svg-light-dark/

✨ As a reminder, publicly replying to this post will add your reply as a comment on the blog post.

#CSS #WebDesign #design #WebDevelopment

Give your SVGs light/dark style support

prefers-color-scheme and media queries are magic

Cassidy James Blaede
@cassidy @jimmac be aware, that this doesn't work for some browsers
@razze @jimmac I mention it in the post, but from looking at CanIUse, support is pretty wide these days
@cassidy @razze Razze deserves all the credit. I was unaware of the way he approached it.
@jimmac @razze ah, I see!