Coder Social home page Coder Social logo

polythene's Introduction

Polythene

Join the chat at https://gitter.im/ArthurClemens/Polythene

Modular implementation of Material Design for Mithril.

Version 0.1.13

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

Install both Polythene and the default theme:

npm

npm install polythene
npm install polythene-theme

jspm

jspm install github:ArthurClemens/Polythene
jspm install github:ArthurClemens/Polythene-theme

Example code

See Polythene-examples.

Developing

For compiling/transpiling, you need to install the following:

  • npm install node-sass -g
  • npm install postcss-cli -g
  • npm install clean-css -g
  • npm install babel -g

Compile (transpile) everything:

  • npm run transpile - compile all scss and es6 files

While developing:

  • npm run watch - watch changes to scss and es6 files

Browser support

The default theme uses flexbox, so this works in IE10 and other browsers. For IE9 you will need to adapt the theme.

License

MIT

polythene's People

Contributors

arthurclemens avatar mneumann avatar gitter-badger avatar

Watchers

Daniel Olfelt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.