Created
December 11, 2015 12:10
-
-
Save franzwilding/fbd503ca058e4f859369 to your computer and use it in GitHub Desktop.
Automatically convert a sketch file to a svg sprite. Each sketch artboard will be an icon and can be accessed by #ARTBOARD-ID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sketchtool export artboards icons.sketch --formats=svg --output=./icons | |
svg-sprite --symbol ./icons/*.svg | |
sed 's/#000/currentColor/g; s/#000000/currentColor/g' ./symbol/svg/sprite.css.svg > icons.svg | |
rm -rf ./icons | |
rm -rf ./symbol |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment