An open API service indexing awesome lists of open source software.

https://github.com/beevelop/fontawesome-spritesheet

Generates PNG Sprite Sheets for Font Awesome (https://fontawesome.io/)
https://github.com/beevelop/fontawesome-spritesheet

List: fontawesome-spritesheet

Last synced: 3 days ago
JSON representation

Generates PNG Sprite Sheets for Font Awesome (https://fontawesome.io/)

Awesome Lists containing this project

README

          

# Font Awesome Spritesheet Generator

> Simple Docker image to generate Font Awesome icons into a embeddable Spritesheet (@1x and @2x / "retina").

## Example
```bash
# 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`.

## Configuration (ENVs)
- `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!