svg-sprite/grunt-svg-sprite

Feature request: change svg fill to currentColor optionally

kirylrb opened this issue · 2 comments

It will be nice if script could optionally change svg fill to 'currentColor', so it will be possible to change svg color easy with css styles.

jkphl commented

I'm sorry but it's definitely out of svg-sprite's scope to alter the SVG files, at least on a builtin support level. However, you have several options for this:

  1. Prepare your SVG files before processing them with svg-sprite.
  2. Use one of the many available SVG packages out there to pre- or post-process the SVG files.
  3. Use svg-sprite's shape or post-processing support for writing code doing what you desire.

Cheers, Joschi

Yep, thats clear now.
Thanks for expanded answer. Nice day to you.