matsubara0507/octicons-elm/1.0.0

Octicons

Provides SVG of GitHub's Octicons to Elm application.

import Html.Attributes exposing (style)
import Octicons.Medium as Octicons

view : Model -> Html msg
view model = 
    ...
    Octicons.alert [ style "fill" "red" ]

Development

git clone --depth=1 -bv17.9.0 https://github.com/primer/octicons.git
./script/svg2elm.sh

Octions.Large/Medium/Small/Nodes modules are generated by svg2elm using Haskell.

License

Octicons.Nodes module is translated from https://github.com/primer/octicons under the MIT license. The originals are copyright GitHub, Inc.