Polythene
Modular implementation of Material Design for Mithril.
Version 0.1.0
Browser support
The default theme uses flexbox, so this works in IE10 and other browsers. For IE9 you will need to adapt the theme.
Setup
Polythene uses Node tools to build. It can run in Node and in the browser.
Source files are written in es6 and transpiled to es5. Components are async es6 modules and loaded when needed, but using SystemJS Builder or jspm it is also possible to create bundles where all required modules are combined.
To keep the components modular (and only required when needed) I have chosen to keep the async aspect.
The examples
and docs
directories show a more complete "real world" setup of a Mithril/Polythene application using SystemJS.
Polythene works both in es6 and es5 applications.
Installation
npm install
npm run setup
- installs additional dependencies and copies files to lib folders
Developing
npm run watch
- watch: scss and es6 filesnpm run build
- compile all CSS
License
MIT