svg-sprite / grunt-svg-sprite

SVG sprites & stacks galore — Grunt plugin wrapping around svg-sprite that reads in a bunch of SVG files, optimizes them and creates SVG sprites and CSS resources in various flavours

Home Page:https://github.com/svg-sprite/svg-sprite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: change svg fill to currentColor optionally

kirylrb opened this issue · 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.

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.