kivra-theme-material-ui
v0.0.3
Published
Universal styling rules for all Kivra using the material-ui library
Downloads
4
Readme
kivra-theme-material-ui
Universal styles for React projects using Material-ui
Install
$ npm install kivra-theme-material-ui --save-dev
Usage
Using the package out of the box
Make all needed imports in your top-most component
import React, {Component} from 'react';
import {MuiThemeProvider, createMuiTheme} from '@material-ui/core/styles';
import kivraTheme from 'kivra-theme-material-ui';
Wrap the app in Material-ui and set the theme
return (
<MuiThemeProvider theme={createMuiTheme(kivraTheme)}>
<MyApp />
</MuiThemeProvider>
);
Overriding default rules
To be documented :)
Deployment
This is a public npm package and can easely be published from the terminal:
$ npm login
(use your own npm user and get added to Kivra organization)
$ npm version major|minor|patch
$ npm publish