Open imMatheus opened 2 months ago
I agree this is a very important step missing from the documentation that is required. This caused a small headache for an hour or two at the start of the project but adding the above from the tailwind documentation fixed the issue.
You also need to paste
@tailwind base;
@tailwind components;
@tailwind utilities;
in index.css to make it work
Feature description
In the guide for setting up shadcnui with vite, https://ui.shadcn.com/docs/installation/vite, I suggest we add a new section between current 2 and 3 that tells the user to change their
content
field intailwind.config.js
to includecontent: ['./index.html', './src/**/*.{js,ts,jsx,tsx}']
.This is a step that is needed to get it to work. I followed the steps that there currently in the docs and it did not work as I got the following issue:
So its a necessary step to get it to work now, after I changed the
content
field it started working. It's also what Tailwind has right after installing the package so makes sense to include tbhAffected component/components
No response
Additional Context
I could make a quick simple PR for this to get it out 🙏
Before submitting