colorize-svg
v0.0.2
Published
Tool to simplify coloring of SVG items
Readme
Colorize SVG
Tool to simplify coloring of SVG items. It looks for all the fill and stroke attributes that have a color on them, replaces them with classes and provides a CSS file that contains these css declarations.
Getting started
npm i -S colorize-svgAdd the following to your package.json:
scripts: {
...
"colorize-svg": "colorize-svg"
}Options
--path (alias -p)
Folder where the SVG's are located (default './')
--output (alias -o)
Output folder for generated files (default './output')
--class (alias -c)
Class to use eg. --class foo results in .foo-u24fw1e (default 'svg')
