svgsprite

Regroup your SVG files in a single sprite


Keywords
python, sprite, svg
License
MIT
Install
pip install svgsprite==0.1.1

Documentation

svgsprite

This is a simple script (no external dependencies) to regroup all the SVG files from a directory into a single sprite.

Installation

pip install svgsprite

Usage

svgsprite --src path/to/dir/with/svg/files --dest path/to/sprite/to/create

You can then refer to your icons with tags like this:

<svg>
  <use xlink:href="sprite.svg#my-svg-file"></use>
</svg>