0.1.27 • Published 2 years ago

@bet-cloud/style-system v0.1.27

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@bet-cloud/style-system

BetCloud Logo

@bet-cloud/style-system is a Style System/UI Toolkit built on top of Chakra UI, the Simple, Modular & Accessible UI Components library. Designed to add additional BC customisation & components to ease things up for fast development with better accessibility and performance in mind.

Usage

⚙️ Installation

yarn add @bet-cloud/style-system

⚡️ Quickstart

Add the BCProvider to your Providers file.

import React from 'react';
import { BCProvider } from '@bet-cloud/style-system';

export default function Providers({ children }: TProviders) {
  return (
    <BCProvider>
      <AxiosProvider>{children}</AxiosProvider>
    </BCProvider>
  );
}

BCProvider adds the default BC core styling to the application. The BCProvider is an extension of ChakraProvider and accepts all of ChakraProvider default props. See here.

💅 Customising the theme

By default, all Chakra components inherit values from the default theme. In some scenarios, you might need to customize the theme tokens to match your design requirements. See here.

🏗 Architecture

Due to the way some applications switch themes & to ensure the project can continue to grow, all architecture needs to follow this structure.

src
|-- theme
|-- |-- [themeName] // <- This will match the REACT_APP_THEME variable camelcase
|-- |-- |-- foundations
|-- |-- |--|-- colors.ts // <- Color overwrites
|-- |-- |-- components
|-- |-- |--|-- button.ts // <- Button overwrites
|-- |-- |-- index.ts // <- Theme entrypoint
|-- |-- |-- styles.ts // <- Global styles

If an application has just one theme, the structure should remain the same, however, have no themeName directory.

Development

🧑‍💻 Prerequisites

  • NVM should be installed via homebrew
  • Node v14.19.0

Release process

TODO

0.1.27

2 years ago

0.1.26

2 years ago

0.1.25

2 years ago

0.1.24

2 years ago

0.1.23

2 years ago

0.1.22

2 years ago

0.1.21

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago