1.2.9 • Published 5 years ago

chirp-ui-components v1.2.9

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Chirp UI Component Library

This is a shared UI Component library for the front end, used in applications such as: Chirp main website and Developer Hub.

How to use?

Update submodules:

git submodule update --init --recursive

Start storybook development server for local development

yarn storybook

Link submodule to your project

Before linking dependency, make sure that dependency version match the one specified in package.json

//From chirp-ui-components
yarn prepublishOnly //to build npm dependency
npm link  //to link dependency to npm
//From the client project
npm link chirp-ui-components

How to consume?

import React from 'react';
import { Card, Header, Paragraph } from 'chirp-ui-components';

const MyComponent = () => (
  <div>
    <Card orangeDark>
      <Header>Hi from a header</Header>
      <Paragraph>And this is a paragraph</Paragraph>
    </Card>
  </div>
);

Fonts

if you would like the fonts to be the same as Chirp's then you need to have Calibre and MarkPro Fonts installed and required as follows:

// replace "../assets/fonts" with the link to your fonts

@font-face {
  font-family: 'Calibre';
  src: url('../assets/fonts/CalibreLight.woff') format('woff');
  font-weight: 300;
}
@font-face {
  font-family: 'Calibre';
  src: url('../assets/fonts/CalibreRegular.woff') format('woff');
  font-weight: 400;
}
@font-face {
  font-family: 'Calibre';
  src: url('../assets/fonts/Calibre-Medium.woff') format('woff');
  font-weight: 500;
}
@font-face {
  font-family: 'MarkPro';
  src: url('../assets/fonts/MarkPro-Medium.woff') format('woff');
  font-weight: 400;
}
@font-face {
  font-family: 'MarkPro';
  src: url('../assets/fonts/MarkPro-Bold.woff') format('woff');
  font-weight: 500;
}
1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.43

6 years ago

1.0.42

6 years ago

1.0.41

6 years ago

1.0.40

6 years ago

1.0.39

6 years ago

1.0.38

6 years ago

1.0.37

6 years ago

1.0.36

6 years ago

1.0.35

6 years ago

1.0.34

6 years ago

1.0.33

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago