3.6.11 • Published 2 months ago

@bitgrow/bitbybit v3.6.11

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

2 months ago

3.6.9

3 months ago

3.6.8

3 months ago

3.6.7

3 months ago

3.6.10

2 months ago

3.5.10

4 months ago

3.5.9

4 months ago

3.6.2

4 months ago

3.6.1

4 months ago

3.6.0

4 months ago

3.6.6

3 months ago

3.6.5

4 months ago

3.6.4

4 months ago

3.6.3

4 months ago

1.8.1

6 months ago

1.8.0

6 months ago

1.6.2

6 months ago

1.6.1

6 months ago

1.6.0

7 months ago

1.4.0

7 months ago

2.2.1

5 months ago

2.2.0

5 months ago

2.0.2

6 months ago

2.4.0

5 months ago

2.6.1

4 months ago

2.6.0

4 months ago

2.6.2

4 months ago

3.5.7

4 months ago

3.5.6

4 months ago

3.5.5

4 months ago

3.5.4

4 months ago

2.0.1

6 months ago

3.5.8

4 months ago

2.0.0

6 months ago

3.4.0

4 months ago

3.2.2

4 months ago

3.2.1

4 months ago

3.2.0

4 months ago

3.2.4

4 months ago

3.4.1

4 months ago

3.2.3

4 months ago

3.0.0

4 months ago

1.7.1

6 months ago

1.7.0

6 months ago

1.5.1

7 months ago

1.5.0

7 months ago

2.3.0

5 months ago

2.5.0

5 months ago

2.3.2

5 months ago

2.3.1

5 months ago

2.5.1

5 months ago

2.1.0

5 months ago

3.3.1

4 months ago

3.3.0

4 months ago

3.1.2

4 months ago

3.1.0

4 months ago

3.5.3

4 months ago

3.5.2

4 months ago

3.5.1

4 months ago

3.5.0

4 months ago

1.8.6

6 months ago

1.8.5

6 months ago

1.8.4

6 months ago

1.8.3

6 months ago

1.3.2

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.2.0

7 months ago

1.1.0

8 months ago

1.0.0

8 months ago

0.0.13

10 months ago

0.0.14

10 months ago

0.0.16

10 months ago

0.0.17

10 months ago

0.0.12

10 months ago

0.0.10

11 months ago

0.0.8

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago

0.0.0

11 months ago