Can someone help me integrate tailwind in my react vite project ?
I followed the docs from tailwind but the utility classes don't show up at all
8 Replies
try following this thread
https://discord.com/channels/436251713830125568/1260157187041525781
I need it inside a react project not vanilla html project 😦
the process shouldn't be diff i believe
u just install tailwind
im not familiar with that stack, but to get some more help, it would be useful to show your structure and config
configure it and that should be it
run this
it should create a tailwind.config.js file
paste the following in it
in the "content", change the target files if needed according to your file structure
put the following in your index.css file
it might give warning but just avoid
and then try setting tailwind classes
when u first start typing a class, u might not get any autocomplete suggestions but just type a class and then hit space and the when u start typing it should start giving u suggestions
make sure u have the extension installed for that first
-# ~ sourced from the official doc
Install Tailwind CSS with Vite - Tailwind CSS
Setting up Tailwind CSS in a Vite project.
i got it working , vite react had different approach
thank you for sticking with me 🙂
welcome