<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/83bf928d-246b-4b00-acf7-995b02ad431d/Group_175767_(1).svg" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/83bf928d-246b-4b00-acf7-995b02ad431d/Group_175767_(1).svg" width="40px" /> **Return to website**
</aside>
Change the color through the CSS declaration, by setting a a color for the .currentColor
value used in the .svg
files.
SVGs have a “stroke-width” attribute that can be set on the .svg
tag directly or with CSS.
Read this article for more details about the benefits of using SVG stroke.
Check also SVG for absolute beginners by Rob Levin
Set the .vector-effect
property of the SVG’s children to .non-scaling-stroke
. This allows you to scale the icon without affecting the stroke width.Resizing a SVG circle with a “non-scaling-stroke” value
Thanks to Cole Bemis for these tips 🙏🏻