This package provides Tailwind design system components for React projects.
Ensure that you have Node.js (>=18.17.0) and Tailwind CSS installed.
# 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.
Visit the Hello Design System Demo Site to explore and try out various components: