Skip to content

Tailwind CSS IntelliSense Snippets not working on VueJs with Tailwind 4.0 #1393

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

Open
Jsuaaa opened this issue Jun 1, 2025 · 2 comments
Open
Labels
question Further information is requested

Comments

@Jsuaaa
Copy link

Jsuaaa commented Jun 1, 2025

Recently I started a new VueJs project and installed tailwind as usual, with tailwind 4.0 the installation is a bit different with Vite so I followed the official instructions but it didn't work.

Tailwind was working but the snippets don't and I was looking in a lot of forums the solution to this but I didn't find anything. I solved it by tryharding.

Basically what you have to do is create a index.css in the ROOT of your VueJs project and import there "tainwindcss" and just follow all the steps that are detailed in the tailwind official documentation.

And that's all I hope this can help someone.

@thecrypticace
Copy link
Contributor

Can you link to a project that you expected to work but didn't?

@thecrypticace thecrypticace added the question Further information is requested label Jun 3, 2025
@Jsuaaa
Copy link
Author

Jsuaaa commented Jun 5, 2025

Hello man, I can share some code showing what I was talking about, but I just tried again and it seems to be working fine now.
Basically, what happened was that Tailwind was being applied in the app, but the class name snippets weren’t showing up in my editor.

my-vue-app/
├── index.css <-- this made it work
├── package.json
├── tailwind.config.js
├── vite.config.js
└── src/
├── App.vue
└── main.js

Right now it works fine.

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

No branches or pull requests

2 participants