3.6.11 • Published 27 days ago

@bitgrow/bitbybit v3.6.11

Weekly downloads
-
License
-
Repository
-
Last release
27 days 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

27 days ago

3.6.9

2 months ago

3.6.8

2 months ago

3.6.7

2 months ago

3.6.10

1 month ago

3.5.10

3 months ago

3.5.9

3 months ago

3.6.2

3 months ago

3.6.1

3 months ago

3.6.0

3 months ago

3.6.6

2 months ago

3.6.5

3 months ago

3.6.4

3 months ago

3.6.3

3 months ago

1.8.1

5 months ago

1.8.0

5 months ago

1.6.2

5 months ago

1.6.1

5 months ago

1.6.0

6 months ago

1.4.0

6 months ago

2.2.1

4 months ago

2.2.0

4 months ago

2.0.2

5 months ago

2.4.0

4 months ago

2.6.1

3 months ago

2.6.0

3 months ago

2.6.2

3 months ago

3.5.7

3 months ago

3.5.6

3 months ago

3.5.5

3 months ago

3.5.4

3 months ago

2.0.1

5 months ago

3.5.8

3 months ago

2.0.0

5 months ago

3.4.0

3 months ago

3.2.2

3 months ago

3.2.1

3 months ago

3.2.0

3 months ago

3.2.4

3 months ago

3.4.1

3 months ago

3.2.3

3 months ago

3.0.0

3 months ago

1.7.1

5 months ago

1.7.0

5 months ago

1.5.1

6 months ago

1.5.0

6 months ago

2.3.0

4 months ago

2.5.0

4 months ago

2.3.2

4 months ago

2.3.1

4 months ago

2.5.1

4 months ago

2.1.0

4 months ago

3.3.1

3 months ago

3.3.0

3 months ago

3.1.2

3 months ago

3.1.0

3 months ago

3.5.3

3 months ago

3.5.2

3 months ago

3.5.1

3 months ago

3.5.0

3 months ago

1.8.6

5 months ago

1.8.5

5 months ago

1.8.4

5 months ago

1.8.3

5 months ago

1.3.2

6 months ago

1.3.1

6 months ago

1.3.0

6 months ago

1.2.0

6 months ago

1.1.0

7 months ago

1.0.0

7 months ago

0.0.13

9 months ago

0.0.14

9 months ago

0.0.16

9 months ago

0.0.17

9 months ago

0.0.12

9 months ago

0.0.10

10 months ago

0.0.8

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago

0.0.0

10 months ago