0.4.25 • Published 3 years ago

@borealisgroup/design-system v0.4.25

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Borealis Design System

yarn add @borealisgroup/design-system

In your Wrapper component you do

import { Header, CombinedThemeProvider } from '@borealisgroup/design-system';

export const App = () => {
  return (
    <CombinedThemeProvider>
      <Header />
      {/* Any child component here can use components from '@borealisgroup/design-system' */}
    </CombinedThemeProvider>
  );
}

Our default font is Roboto, you have to include it yourself. One way to do this is by including the following link tag in your html head.

<!DOCTYPE html>
<html lang="en">
 <head>
    ...
    <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
    ...
 </head>
 ...

You can find our component documentation on Storybook

Updating this library

  1. Update one of our components or get the latest icons from Figma by running yarn build:icons
  2. Run yarn build:library
  3. Increase the version number in package.json (feel free to automate it)
  4. Run npm publish

Testing locally this library

  1. Git clone this library
  2. Navigate to the root of this folder
  3. Run yarn build:library
  4. Make sure to remove the (react) node_modules otherwise you will get "Invalid Hooks" error. This is because you have multiple versions of React
  5. In another React project you can install it by referencing the location of this folder on your local drive, for example yarn add ../design-system

Deploy locally

Firstly, be sure you are logged in AWS: make login. The command above comes from the optional dependency, if you don't have it run: make utils then make login.

Secondly, be sure you have all the required Helm repos. Run helm repo list. The result should be the following:

NAME                 	URL
stable               	https://charts.helm.sh/stable
digitalstudio-develop	s3://digitalstudio-helm-repository/develop/charts
digitalstudio-test   	s3://digitalstudio-helm-repository/test/charts
digitalstudio-master 	s3://digitalstudio-helm-repository/master/charts
bitnami              	https://charts.bitnami.com/bitnami
k8s-at-home          	https://k8s-at-home.com/charts/

If is not, just add the missing one: heml repo add NAME URL

Finally, in order to deploy the app locally run the following steps:

  1. kubectl config use-context docker-desktop (prepare to build your project’s local docker images)
  2. make build (build the images)
  3. kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud/deploy.yaml (deploy the local gateway)
  4. make deploy

You app will be available in: http://storybook.127.0.0.1.nip.io/

0.4.28

3 years ago

0.4.29

3 years ago

0.4.26

3 years ago

0.4.27

3 years ago

0.4.24

3 years ago

0.4.25

3 years ago

0.4.31

3 years ago

0.4.32

3 years ago

0.4.30

3 years ago

0.4.33

3 years ago

0.4.20

3 years ago

0.4.21

3 years ago

0.4.22

3 years ago

0.4.23

3 years ago

0.4.19

3 years ago

0.4.17

3 years ago

0.4.18

3 years ago

0.4.16

4 years ago

0.4.10

4 years ago

0.4.15

4 years ago

0.4.13

4 years ago

0.4.14

4 years ago

0.4.11

4 years ago

0.4.12

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.7-beta

4 years ago

0.4.6-beta

4 years ago

0.4.3-beta

4 years ago

0.4.0-beta

4 years ago

0.4.1-beta

4 years ago

0.4.5-beta

4 years ago

0.4.2-beta

4 years ago

0.4.4-beta

4 years ago

0.3.0-beta

4 years ago

0.2.1

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago