Simple Docker image to generate Font Awesome icons into a embeddable Spritesheet (@1x and @2x / "retina").
# Clone this repo and run
git clone https://github.com/beevelop/fontawesome-spritesheet.git
cd fontawesome-spritesheet
docker build -t fass .
docker run -it -v `pwd`/dist/:/opt/fa/dist/ \
-e COLOR=blue -e SIZE=128 \
--rm fass
Results are stored in /opt/fa/dist
and can be mounted with -v
.
COLOR
: String / hexcode with the color's name (default:black
)SIZE
: Integer for the @1x resolution (default:64
)
This plugin uses https://github.com/tupadr3/Font-Awesome-SVG-PNG and https://github.com/Ensighten/grunt-spritesmith for the magic. Thanks guys!