Skip to content

Instantly share code, notes, and snippets.

@te-online
Created February 25, 2016 14:55
Show Gist options
  • Save te-online/a0c1bdf69077f36cfdf9 to your computer and use it in GitHub Desktop.
Save te-online/a0c1bdf69077f36cfdf9 to your computer and use it in GitHub Desktop.
svg-sprites

SVG Spritesheets

  1. Illustrator export with presentation attributes.
  2. SVGO the single files.
  3. svg-sprite --symbol svg/*.svg --dest=out # where the single files are in svg/ and output will be in out/
  4. Use jade: svg use(xlink:href="#id_of_symbol")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment