This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Material Design Lite port to Elm
version 5.0.1
license BSD3
native-modules False
elm-version 0.17.0 <= v < 0.18.0
Tag 5.0.1
Committed At 2016-06-22 13:43:28 UTC
elm-lang/window 1.0.0 <= v < 2.0.0 1.0.1
elm-lang/html 1.0.0 <= v < 2.0.0 1.1.0
elm-lang/dom 1.0.0 <= v < 2.0.0 1.1.1
elm-lang/core 4.0.0 <= v < 5.0.0 4.0.5
debois/elm-parts 2.1.0 <= v < 3.0.0 2.1.0
debois/elm-dom 1.2.0 <= v < 2.0.0 1.3.0


Material Design Components in Elm

Build Status

Port of Google's Material Design Lite CSS/JS implementation of the Material Design Specification.

Live demo here.

MDL is implemented primarily through CSS, with a little bit of JavaScript adding and removing CSS classes in response to DOM events. This port re-implements the JavaScript parts in Elm, but relies on the CSS of MDL verbatim.

Get Started

Build the demo:

> elm-make examples/Demo.elm

This will construct a file index.html; open that in your browser.

Embedding in your own HTML.

Initial page load of the demo will produce a flicker, which can only be avoided if you set up the MDL CSS to load before elm does. Use the file page.html as a template. To build the demo in this mode, comment out line 154 in examples/Demo.elm and build the demo like this:

> elm-make examples/Demo.elm --output elm.js

This will produce a file elm.js. Open the file page.html in your browser; this file will set up MDL CSS and load elm.js.


Contributions are warmly encouraged! Whether you are a newcomer to Elm or an accomplished expert, the MDL port presents interesting challenges. Refer to this page for a detailed list of possible contributions.