/material-icon-element-generator

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

Primary LanguagePython

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