materialist
This is a library that allows you to theme your components with material design when using a CSS in JS solution like Aphrodite.
It's roughly based on Material Design Lite
Usage
Make sure you include the Roboto font in your page.
Base functions and styles are available in the base component, i.e. import { base } from 'materialist'
.
You may want to include a normalize css file first.
import React from 'react';import { StyleSheet, css } from 'aphrodite';import { base, button } from 'materialist'; const App = () => ( <div className={css(styles.html)}> <h1 className={css(styles.h1)}> Hello, world! </h1> <button className={css(styles.button)}>Button</button> <button className={css(styles.buttonColored)}>Button</button> <button className={css(styles.buttonAccent)}>Button</button> <button className={css(styles.raised)}>Button</button> <button className={css(styles.raisedColored)}>Button</button> <button className={css(styles.raisedAccent)}>Button</button> </div>); const styles = StyleSheet.create({ html: { ...base.html }, h1: { ...base.heading(1) }, button: { ...button.flat }, buttonColored: { ...button.flatColored }, buttonAccent: { ...button.flatAccent }, raised: { ...button.raised }, raisedColored: { ...button.raisedColored }, raisedAccent: { ...button.raisedAccent },}); export default App;
Contributing
Tasks towards feature completion can be found on the MVP project board.
This project follows the Contributor Covenant Code of Conduct
Please follow the karma commit style