kivra-theme-material-ui

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i kivra-theme-material-ui

Weekly Downloads

1

Version

0.0.3

License

ISC

Unpacked Size

1.96 kB

Total Files

3

Last publish

Collaborators

  • tatsii
  • timjackleus
  • lambdalainen
  • kivra-dev