Git Product home page Git Product logo

svg-sprite-generator's Introduction

svg-sprite-generator

Unlike similar Gulp or Grunt tools, our SVG sprite generator is created for designers who are not fond of coding. This tool simply takes a list of SVG files and make a single sprite file using <symbol> elements.

SVG sprite generator is a helpful for creating icon systems.

Installation

This program needs Node.js to run. If Node already existed in your system, use npm to install the generator:

npm install -g svg-sprite-generator

Usage

From a directory

Generate sprite from a directory of SVG files

svg-sprite-generate -d path/to/directory/of/svg/files -o path/to/sprite.svg

From a list of SVG files

Or specify SVG files to generate from. File paths can be separated with a comma.

svg-sprite-generate -l path/to/file1.svg,path/to/file2.svg -o path/to/sprite.svg

From a CSV file

Or use a CSV file. The first column contains symbol IDs, the second contains SVG file paths.

duo-alarm-clock, test/svg/duo-alarm-clock.svg
duo-bicycle, test/svg/duo-bicycle.svg

The command

svg-sprite-generate -c path/to/csv.csv -o path/to/sprite.svg

From another sprite file

You can take another sprite file and generate a new one with some modification too.

svg-sprite-generate -s path/to/sprite.svg -l path/to/extra.svg,path/to/another-extra-one.svg -o new-sprite.svg

About

SVG Sprite Generator is created by the folks at SmartIcons

License

MIT

svg-sprite-generator's People

Contributors

chutichhuy avatar mintran avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.