3.6.11 • Published 4 months ago

@bitgrow/bitbybit v3.6.11

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

BitByBit

A Bitgrow React design system

Installation

This package is hosted in NPM packages and to install, use:

npm install @bitgrow/bitbybit

Usage

After install in your project, import the style.css on head of your main css file.

@import "@bitgrow/bitbybit/dist/style.css";

if you use tailwind on your project, import the preset and content on your tailwind.config.ts:

{
  presets: [
     require("@bitgrow/bitbybit/tailwind.config.cjs"),
  ],
  content: [
     './node_modules/@bitgrow/bitbybit/dist/**/*.{js,ts,jsx,tsx}',
  ]
}

Theming

To define default theme, set data-theme property in your html tag.

<html data-theme="bitgrow">
	<body>
		{...}
	</body>
</html>

You can use the setTheme function to change theme your app:

import { setTheme, BitThemes } from '@bitgrow/bitbybit';

<button onClick={() => setTheme(BitThemes.DARK)}>dark</button>
<buttonon Click={() => setTheme(BitThemes.DEFAULT)}>light</button>
import { BitButton } from '@bitgrow/bitbybit';

<BitButton
  text="Submit"
  color="primary"
  onClick={() => handleSubmit()}
  icon={</MyIcon />}
/>

Development

Create new components in src/components and export on src/index.ts;

Example App

Use storybook to documentation and development.

npm run dev

Create new Theme

To create a new theme in Design System define the styles on index.css, and add the theme in setTheme.ts file, include type, and key on BitThemes object.

3.6.11

4 months ago

3.6.9

5 months ago

3.6.8

5 months ago

3.6.7

5 months ago

3.6.10

5 months ago

3.5.10

6 months ago

3.5.9

6 months ago

3.6.2

6 months ago

3.6.1

6 months ago

3.6.0

6 months ago

3.6.6

5 months ago

3.6.5

6 months ago

3.6.4

6 months ago

3.6.3

6 months ago

1.8.1

8 months ago

1.8.0

8 months ago

1.6.2

8 months ago

1.6.1

8 months ago

1.6.0

9 months ago

1.4.0

9 months ago

2.2.1

7 months ago

2.2.0

7 months ago

2.0.2

8 months ago

2.4.0

7 months ago

2.6.1

6 months ago

2.6.0

6 months ago

2.6.2

6 months ago

3.5.7

6 months ago

3.5.6

6 months ago

3.5.5

6 months ago

3.5.4

6 months ago

2.0.1

8 months ago

3.5.8

6 months ago

2.0.0

8 months ago

3.4.0

6 months ago

3.2.2

6 months ago

3.2.1

6 months ago

3.2.0

6 months ago

3.2.4

6 months ago

3.4.1

6 months ago

3.2.3

6 months ago

3.0.0

6 months ago

1.7.1

8 months ago

1.7.0

8 months ago

1.5.1

9 months ago

1.5.0

9 months ago

2.3.0

7 months ago

2.5.0

7 months ago

2.3.2

7 months ago

2.3.1

7 months ago

2.5.1

7 months ago

2.1.0

8 months ago

3.3.1

6 months ago

3.3.0

6 months ago

3.1.2

6 months ago

3.1.0

6 months ago

3.5.3

6 months ago

3.5.2

6 months ago

3.5.1

6 months ago

3.5.0

6 months ago

1.8.6

8 months ago

1.8.5

8 months ago

1.8.4

8 months ago

1.8.3

8 months ago

1.3.2

9 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.12

1 year ago

0.0.10

1 year ago

0.0.8

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago