How To Color Svg Color Code Example


Example 1: change svg color


filter: invert(100%) sepia(0%) saturate(7443%) hue-rotate(198deg) brightness(126%) contrast(112%);

Example 2: change svg color


<svg width="96px" height="96px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
<path id="time-3-icon" .../>
</svg>

SVG are XML document so just add a style="fill:red"
on the SVG tag when you open the file

<image class="my-svg-alternate" width="96" height="96" src="ppngfallback.png" />

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable