This package provides Tailwind CSS-based design system components for React projects.
Ensure that you have Node.js (>=18.17.0) and Tailwind CSS installed in your project.
# with npm
npm install -D hello-design-system
# with yarn
yarn add --dev hello-design-system
Open your globals.css (or any global CSS file) and add the following line:
/* globals.css */ @import "hello-design-system/build/build.css";
import 'globals.css'
# with npm
npm install -D hello-design-system
# with yarn
yarn add --dev hello-design-system
Include hello-design-system in the content array of your tailwind.config.js file to ensure Tailwind scans the component files:
// tailwind.config.js module.exports = { content: [ // your existing paths... "./node_modules/hello-design-system/**/*.{js,jsx,ts,tsx}", ], // other settings... };
Make sure your project is properly configured to use Tailwind CSS. If you're new to Tailwind, please refer to the Tailwind CSS Documentation for the setup guide.
For more details and the latest updates, visit the npm repository for hello-design-system.