Here’s a fun SVG trick I just learned. If you set the fill or stroke properties to currentColor using CSS, your SVG will be the color of the text around it.
This is great for auto-changing light and dark modes because it means you don’t need multiple images – the SVG will just change color appropriately.
Click on the permalink for this note for a demo :D
Permalink: https://www.ragman.net/notes/24
#coding, #webdev