@politico/interactive-style-material

Components to add a POLITICO flare to [Material UI](https://material-ui.com/getting-started/installation/).

Usage no npm install needed!

<script type="module">
  import politicoInteractiveStyleMaterial from 'https://cdn.skypack.dev/@politico/interactive-style-material';
</script>

README

@politico/module_material

Components to add a POLITICO flare to Material UI.

Quick Start

Installation:

$ yarn add https://github.com/The-Politico/module_material

Import only what you need:

import { ThemeProvider } from '@politico/interactive-style-material';

Use it in your component:

import { ThemeProvider } from '@politico/interactive-style-material';
import Button from '@material-ui/core/Button';

const MyComponent = () => (
  <ThemeProvider>
    <Button color='primary'>Primary</Button>
    <Button color='secondary'>Secondary</Button>
  </ThemeProvider>
)

Development

Clone Repo:

$ git clone https://github.com/The-Politico/module_material

Install dependencies:

$ yarn

Start development server:

$ yarn start

Build assets:

$ yarn build

Publish:

$ git commit -m 'build message'.
$ git push origin master

©2019 POLITICO