gmoura / ui

Laboratoria UI based on our own style guide and Material UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laboratoria UI

Laboratoria UI it's a custom theme of the Material UI with some our custom components.

How to use Laboratoria UI

Integrate with your React Application

First import our fonts

Bitter for titles and Open Sans for texts

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter:400,700|Open+Sans:400,400i,700" />

Lastly, import laboratoria-ui Material-UI theme

import React from 'react';
import ReactDOM from 'react-dom';

// Inject a theme into your application
import { MuiThemeProvider } from '@material-ui/core/styles';

// Our theme
import { Theme } from 'laboratoria-ui';

import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';

ReactDOM.render(
  <MuiThemeProvider theme={Theme}>
    <div>
      <Typography variant="h1" align="center">
        Hola
      </Typography>

      <Button variant="contained" color="primary">
        Button
      </Button>
  </MuiThemeProvider>,
  document.getElementById('app'),
);

How to run Storybook

Install the project

yarn

Run Storybook

yarn start

Heroku deployment

The deployment happen automatically, every push to master will deploy a new version of this app on Heroku.

About

Laboratoria UI based on our own style guide and Material UI


Languages

Language:JavaScript 78.6%Language:HTML 21.4%