R
R
RodgerFox2016-08-04 23:57:10
gulp.js
RodgerFox, 2016-08-04 23:57:10

How to pass fill attribute to style generation, svg to symbol sprites?

Hello everyone, I'm making sprites from a svg set, currently using https://www.npmjs.com/package/svg-sprite .
And I came across a problem, I can’t recolor the icons, because in the generated sprite, the fill attribute remains. If I delete it, the icons will be without the desired color, of course, you can set a color for them (separate, for each icon with handles in styles), but can't this be automated somehow? How to force to take the necessary attribute from the icon and use it when generating styles? I absolutely can't think of it. Icons inline in html, in css through the plugin I set the sizes.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question