Generate list of Material Icons to symbols elements for Web usage with Gulp
Current Version: 4.0.0
Pre-generated SVGs are in the dest
folder for download.
https://material.io/resources/icons/
- Filled (default)
- Outlined
- Rounded
- Two Toned
- Sharp
Download latest icon pack from https://github.com/google/material-design-icons
- Download the repo
- Install the packages with
npm i
- Run command at root of project with
grunt
,grunt gulpile.js
- File will be generated out in
dest
folder - Include SVG in web page and reference icons with
<svg><use xlink:href="#m-icon-exit_to_app"></use></svg>
Feeling lazy? Just copy & paste the command for respective icon type. File will be generated out in dest
folder, named src.svg
.
grunt materialicons
grunt materialiconsoutlined
grunt materialiconsround
grunt materialiconssharp
grunt materialiconstwotone
References