Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: tailwindCSS update #3414

Closed
neupanekiran opened this issue Jan 25, 2025 · 2 comments
Closed

docs: tailwindCSS update #3414

neupanekiran opened this issue Jan 25, 2025 · 2 comments

Comments

@neupanekiran
Copy link

On which page do you see this issue?

https://daisyui.com/docs/install/

Describe the issue

So as per new tailwind update in css in vite now the file tailwindcss.cofing.js doesn't exist where we can import dasyui because nerw import at tailwindcss in vite is like nstall Tailwind CSS
Install tailwindcss and @tailwindcss/vite via npm.

Terminal
npm install tailwindcss @tailwindcss/vite
02
Configure the Vite plugin
Add the @tailwindcss/vite plugin to your Vite configuration.

vite.config.ts
import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [
tailwindcss(),
],
})
03
Import Tailwind CSS
Add an @import to your CSS file that imports Tailwind CSS.

CSS
@import "tailwindcss";
04
Start your build process
Run your build process with npm run dev or whatever command is configured in your package.json file.

Terminal
npm run dev

so to address this issues we can simply fix by adding @import "daisyui/dist/full.css"; in index.css

Image Image #3410 Result: Image

What browsers are you seeing the problem on?

No response

Copy link

Thank you @neupanekiran for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@saadeghi
Copy link
Owner

Please read v5 beta release notes
https://v5.daisyui.com/docs/v5-beta/

And install instructions
https://v5.daisyui.com/docs/install/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants