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 SVGs are just awesome like that. 😊

I've started writing little plugins that automatically turn a folder of SVGs into a sprite that then gets inclined into my website. That way I have the convenience of just uploading a newly drawn icon with the benefit of being able to style them via CSS. 👌

And SVG favicons are just awesome. 😊 I love the modern web. 😁