Design System and React component library for Brinca
The library is built with:
Install all the dependencies
yarn installStart the project
yarn devBuild Component Library
yarn buildBuild Docs
yarn build:docsRegular Tests
yarn testHeadless Tests
yarn test:ciThis 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-uicss. 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}', ... ], ... };