I'm using svgo and am running into an odd issue where it's killing my fill color, but only if it's #000000; or any variation of the sort, black, #000. I've tried setting removeUselessStrokeAndFill to false but it continues to remove that color only. Editing the src .svg file with something different maintains the fill color. Is there a setting I'm missing? Thanks!
SVGO: Killing #000000 fill
2k Views Asked by Zach At
2
No, you're doing it right. There is actually an issue #115 on the svgo about this.
To fix this, you have to set your color to another black, the closer to the real
blackis#000001. So you can change all your black color references to this in your svg, wait for a fix, or event better, install gulp-replace and do something like this :