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: ragman.net/notes/24
,

0

If you have a fediverse account, you can quote this note from your own instance. Search https://jawns.club/users/ragman/statuses/114387768726843621 on your instance and quote it. (Note that quoting is not supported in Mastodon.)