https://github.com/bpierre/fontello-svg
Generate SVG icons from a Fontello icon set.
https://github.com/bpierre/fontello-svg
font icon svg
Last synced: 22 days ago
JSON representation
Generate SVG icons from a Fontello icon set.
- Host: GitHub
- URL: https://github.com/bpierre/fontello-svg
- Owner: bpierre
- License: mit
- Created: 2013-11-15T01:41:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-12T19:32:40.000Z (about 8 years ago)
- Last Synced: 2025-04-11T16:05:40.221Z (23 days ago)
- Topics: font, icon, svg
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 67
- Watchers: 5
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fontello-svg
fontello-svg is a command-line tool to generate the SVG versions of a [Fontello](http://fontello.com/) icon set, with a corresponding CSS file.
[](https://travis-ci.org/bpierre/fontello-svg)
## Installation
```shell
$ npm install fontello-svg -g
```## Example
You need to select and download an icon set from the Fontello website, then indicate the path of the `config.json` file with the `--config` parameter.
```shell
$ fontello-svg --config fontello-config-file.json \
--out ./iconset-directory \
--fill-colors "grey:rgb(77,78,83)|blue:rgb(0,149,221)"
```## Usage
```shell
Usage: fontello-svg --config --out [options]Options:
-h, --help output usage information
-V, --version output the version number
-c, --config Set the Fontello configuration file (required)
-o, --out Set the export directory (required)
-f, --fill-colors Transform the SVG paths to the specified colors. Syntax: --fill-colors "black:rgb(0,0,0) | red:rgb(255,0,0)"
-p, --css-path Set a CSS path for SVG backgrounds
--file-format Override the default filename. Values: {0} - collection, {1} - name, {2} - color. Syntax: --file-format "{0}-{1}-{2}.svg" | --file-format "{0}-Custom-{1}.svg"
--no-css Do not create the CSS file
--no-skip Do not skip existing files
--verbose Verbose output
```## Tutorial
[Sara Soueidan](https://sarasoueidan.com/) wrote a blog post explaining how to use fontello-svg and other tools to convert an icons-as-font configuration into SVG files. Read it here:
## License
[MIT](http://pierre.mit-license.org/)