Color Changable SVG as background images
* SVG Icon Generatior
* Accept hex color only
* Use as background-image: url(svgIconName(#hex-code));
Color Changable SVG as background images
* SVG Icon Generatior
* Accept hex color only
* Use as background-image: url(svgIconName(#hex-code));
/** | |
* SVG Icon Generatior | |
* Accept hex color only | |
* Use as background-image: url(svgIconName(#hex-code)); | |
*/ | |
@function svgIconClose($color: #010101) { | |
$hexColor: '%23' + str-slice('#{$color}', 2, -1); | |
@return "data:image/svg+xml,%3Csvg width='32' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 28c6.627 0 12-5.373 12-12S22.627 4 16 4 4 9.373 4 16s5.373 12 12 12Z' stroke='#{$hexColor}' stroke-width='1.5' stroke-miterlimit='10'/%3E%3Cpath d='m20 12-8 8M20 20l-8-8' stroke='#{$hexColor}' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"; | |
} |