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" />
laboratoria-ui
Material-UI theme
Lastly, import 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.