Closed mtsweir closed 3 years ago
Hi @mtsweir, when using symbol
you can't access the icon's CSS properties since they aren't in the DOM, but in Shadow DOM. You can use CSS Variables to style these elements though. Here is a nice writeup on how to do that:
https://frontstuff.io/multi-colored-svg-symbol-icons-with-css-variables
I'm considering using these icons as a system for a current project. Here's an example:
Defs
Use
CSS This works fine, but I can't control the weight or stroke attributes: