Design System and React component library for Brinca
The library is built with:
Install all the dependencies
yarn install
Start the project
yarn dev
Build Component Library
yarn build
Build Docs
yarn build:docs
Regular Tests
yarn test
Headless Tests
yarn test:ci
This project uses Github Actions to deploy the NPM Package and to build the docs.
-
Install the package using the following command:
yarn add @marceloglacial/brinca-ui
-
Import the css file using:
/* yourmaincssfile.css */ @import '../node_modules/@marceloglacial/brinca-ui/dist/style.css';
This is a Tailwind project and the initial CSS is already built-in on
brinca-ui
css. If you are facing CSS issues, remove initial Tailwind's @ markup.E.g.:
/* /* yourmaincssfile.css /* BEFORE: */ @tailwind base; @tailwind components; @tailwind utilities; ... /* AFTER: */ @import '../node_modules/@marceloglacial/brinca-ui/dist/style.css'; ...
-
Update your Tailwind config file:
// tailwind.config.js module.exports = { content: [ ... './node_modules/@marceloglacial/brinca-ui/**/*.{js,ts,jsx,tsx}', ... ], ... };