0.4.18 • Published 4 years ago

cz-ui v0.4.18

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

czUI

A starter kit for CZI and Biohub Projects.

Installation

npm install cz-ui

Usage

Just add the wrapper for the the desired theme around your root component. You can then import React components directly from the cx-ui package for use in your project.

import React from 'react';
import ReactDOM from 'react-dom';
import {
  CZUI,
  PageTitle
} from 'cz-ui';

const App = function() {
  return (
    <CZUI>
      <div role="main">
        <PageTitle>Hello World</PageTitle>
      </div>
    </CZUI>
  );
}

ReactDOM.render(<App />, document.getElementById('app'));

Using Mixins

czUI exports SASS mixin files so that you can use the theme fonts on your own custom components. For example:

@import "cz-ui/mixins/typography.scss";

.customComponent {
  @include font-accent;
}

Available Themes

The following theme components are available:

  • theme name: czi, root component: <CZUI />
  • theme name: biohub, root component: <BiohubUI />

See the Theme Catalog

To launch the Storybook catalog run: 1. npm install 2. npm run storybook-<theme_name>

Developer

Publishing

To publish a new version;

1) Add/update code and merge to master. 2) Bump the version in the package.json. 3) npm publish will clean and build a new lib/ folder.

0.4.18

4 years ago

0.4.17

4 years ago

0.4.16

4 years ago

0.4.14

4 years ago

0.4.13

4 years ago

0.4.12

4 years ago

0.4.11

4 years ago

0.4.10

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago