0.1.4 • Published 4 years ago

@carinaweb/ui v0.1.4

Weekly downloads
-
License
-
Repository
github
Last release
4 years ago

Interact with components at http://storybook.carina.org

Installation

npm install @material-ui/core @carinaweb/ui

Usage

To import a Carina component, such as the Theme:

import React from "react";
import { MuiThemeProvider } from "@material-ui/core/styles";
import { CssBaseline, Typography } from "@material-ui/core";
import { Theme } from "@carinaweb/ui";

function App() {
  return (
    <MuiThemeProvider theme={Theme}>
      <CssBaseline />
      <Typography variant="body1">Hello earth</Typography>
    </MuiThemeProvider>
  );
}

export default App;

Development

Clone this repository and then:

  • npm install: install dependencies
  • npm start: runs storybook at http://localhost:9009/
  • git push to master branch: a github workflow will build and deploy storybook to production
  • npm publish: publish package to npm and github

Other scripts:

  • npm run build: outputs distributable components from /src into /dist
  • npm run build-storybook: outputs stories from /stories into storybook-static