React Tailwind CSS
Tailwind CSS

Install Tailwind CSS
Inside your React project folder, install Tailwind and its required packages:
This will generate two files:
- tailwind.config.js
- postcss.config.js
Configure tailwind.config.js
Open the tailwind.config.js file and configure the content option to include all your React component files:
Add Tailwind Directives to CSS
In React project, go to src/index.css (or create a new CSS file), and replace its content with:
Check out the official Tailwind CSS website for full details and documentation.