FWeinb / grunt-svgstore

Merge svgs from a folder
MIT License
920 stars 94 forks source link

How to add id symbol to style. #119

Open TranQuangMinh opened 8 years ago

TranQuangMinh commented 8 years ago

I have something icon .svg with multiple color. When using grunt-svgstore to merge to one file svg style(type=text/css) duplicate class symbol => color fill wrong

Please help me. Thanks all

CJohnDesign commented 7 years ago

I just went into each svg after I created it and added the 'filename-' to the beginning of each class and find and replace. for example, in 'globe.svg,' the classes appeared as 'globe-st0, globe-st1 etc...'

Definitely wish svgstore had a way to automate