Elm-port of the Material Design Lite CSS/JS library
Find a file
2016-04-12 15:09:36 +02:00
demo Forgot file. 2016-04-12 15:09:29 +02:00
examples Moved the demo into a separate folder to avoid bloating elm-mdl package imports 2016-04-11 17:00:49 +02:00
src Added snackbar documentation. Fixes #9. 2016-04-12 15:09:12 +02:00
.gitignore chore(app): ignoring vscode files 2016-03-22 07:29:41 +01:00
.travis.yml Added small demos to .travis.yml 2016-04-06 22:05:04 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2016-04-12 08:02:35 +02:00
elm-package.json Moved the demo into a separate folder to avoid bloating elm-mdl package imports 2016-04-11 17:00:49 +02:00
Makefile Added snackbar documentation. Fixes #9. 2016-04-12 15:09:12 +02:00
page.html Added Elevation module, closing #19. 2016-04-09 01:03:38 +02:00
README.md Update README.md 2016-03-26 12:16:40 +01:00

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 CSS parts in Elm, but relies on the CSS of MDL verbatim.

CAUTION! This is an early and incomplete prototype. Use at your own risk.

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.

Contribute

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.