0.0.2 • Published 2 years ago
colorize-svg v0.0.2
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-svg
Add 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')