fontello-svg
fontello-svg is a command-line tool to generate the SVG versions of a Fontello icon set, with a corresponding CSS file.
Last updated 5 years ago by bpierre .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fontello-svg 
SYNC missed versions from official npm registry.

fontello-svg

fontello-svg is a command-line tool to generate the SVG versions of a Fontello icon set, with a corresponding CSS file.

Build Status

Installation

$ 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.

$ fontello-svg.js --config fontello-config-file.json \
                  --out ./iconset-directory \
                  --fill-colors "grey:rgb(77,78,83)|blue:rgb(0,149,221)"

Usage

  Usage: fontello-svg.js --config <config file> --out <dir> [options]

  Options:

    -h, --help                  output usage information
    -V, --version               output the version number
    -c, --config <config file>  Set the Fontello configuration file (required)
    -o, --out <dir>             Set the export directory (required)
    -f, --fill-colors <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 <path>       Set a CSS path for SVG backgrounds
    --file-format <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

License

MIT

Current Tags

  • 0.5.0                                ...           latest (5 years ago)

9 Versions

  • 0.5.0                                ...           5 years ago
  • 0.4.1                                ...           7 years ago
  • 0.4.0                                ...           7 years ago
  • 0.3.2                                ...           7 years ago
  • 0.3.1                                ...           7 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |