svgo-compressor
svgo-compressor copied to clipboard
Feature request: find and replace value
I would love a certain colour in my sketch made icons to be replaced by currentColor on export!
What do you think? : D
@mesqueeb You can add a currentColor param to the convertColors plugin:
{
"name": "convertColors",
"enabled": true,
"params": {
"currentColor": true
}
}
But this will affect all colors rather than specific colors.
FYI, if you want to replace a certain color, place that one in there instead of currentColor: true. So if you wanted to replace black (#000000), it would be:
{
"name": "convertColors",
"enabled": true,
"params": {
"currentColor": "#000000"
}
},