Setup Tailwind in create-react-app project
11 March 2022 (Updated 13 November 2022)
Install tailwindcss
Configure template paths
Add the following to tailwind.config.js
:
Add tailwind CSS directives
Add the following to src/index.css
:
Restart build process
Start using tailwind
Edit src/App.tsx
:
(Optional) Setup Tailwind UI
Sources
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment