Skip to content

buildrtech/elm-material-icons

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Material Icons for Elm

This package includes all the Material icons. It does not use Google's Github repo, which is currently out-of-date (19th of January 2020). Instead it uses the data set from the material.io website.

import Color
import Material.Icons as Filled exposing (offline_bolt)
import Material.Icons.Outlined as Outlined exposing (offline_bolt)
import Material.Icons.Types exposing (Coloring(..))

-- icon : Int (size) -> Coloring -> Html msg
Filled.offline_bolt 16 (Color <| Color.rgb 96 181 204)
Outlined.offline_bolt 16 Inherit

Preview

All the icons are listed on the material.io website.

Notes

  • It uses avh4/elm-color for colors.
  • As opposed to providing a color, you can also inherit the css color.