tccoin / material-icon-element-generator

Automatically generate an Polymer icons element for new material design icons like rounded and sharp style.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Material Icon Element Generator

Automatically generate an Polymer icons element for new material design icons like rounded and sharp style.

Install

Download the script, then use:

pip install -r requirements.txt
mkdir tmp
mkdir dist

Usage

  • generate.py: main script.
  • template.html: the default template of the Polymer element.
  • config.json: where all the options are provided.
    • style: the style you want. See Icons - Material Design. 'Round' and 'Sharp' tested.
    • svgUrl: just... the url template of svg...
    • elementName: the name of the output element
    • template: the template you want to use for generating the element
    • icons: the icons you want

About

Automatically generate an Polymer icons element for new material design icons like rounded and sharp style.


Languages

Language:Python 81.2%Language:JavaScript 18.8%