Skip to content

jonathankeuser/material-icon-font

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Material Icon Font

Found some time to scrape (thanks @jamesplease) and build the baseline, outline, round, and sharp material icon families all into font ligatures. You can find the ligature reference gallery here. There's probably some bugs but feel free to try!

demo mov

material-icon-gen-doc mov

reference

icon ligature reference gallery

setup

install node

https://nodejs.org/en/

install package dependencies

  • npm install at the root

making fonts

  1. Replace svgs located in res
  2. Navigate and make sure directory is in the root folder
  3. open makeMaterial and uncomment out the style variable you want to generate(i know this sucks for now)
  4. node makeMaterial.js in the terminal
  5. Bin will hold all generated assets

using the font with Angular Material

  1. Install package via npm npm i --save https://github.com/petergng/materialIconFont.git
  2. Import font css in your projects style.css @import '~material-icon-font/dist/Material-Icons.css';
  3. Define which font family you want to use in the
    • to use it globally edit style.css
    .material-icons {
         font-family: 'Material Icons Outline'
    }
    
    • to use it for one element only use style or class attribute
    <mat-icon style="font-family: 'Material Icons Sharp'">fastfood</mat-icon>
    

About

Material design icon styles (baseline, outline, round, sharp) built into font weights.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 88.2%
  • Swift 9.4%
  • JavaScript 2.4%