How to get TailwindCSS IntelliSense working in NuxtUI v3?
How to get TailwindCSS IntelliSense working in NuxtUI v3 since it uses TailwindCSS v4 alpha?
I already have tailwindcss-intellisense switched to Pre-Release version
10 Replies
Hi @eyJOdnJHb25uYSI6Imd2VXVwIn0=. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To get TailwindCSS IntelliSense working in NuxtUI v3, you need to make some configurations in your VSCode settings. Here are the steps:
1. Install the Tailwind CSS IntelliSense (https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) extension for VSCode.
2. Add the following to your
.vscode/settings.json
file:
These settings will enable IntelliSense for Tailwind classes in various contexts, including the ui
prop and custom configurations Source (https://ui.nuxt.com/getting-started/installation#intellisense).
3. If you're using a TypeScript configuration for Tailwind, make sure your tailwind.config.ts
file is set up correctly:
Source (https://ui.nuxt.com/getting-started/installation#intellisense)
4. For IntelliSense to work with the ui
prop in your components, you can use the /*ui*/
prefix:
Source (https://ui.nuxt.com/getting-started/installation#intellisense)
These configurations should help you get TailwindCSS IntelliSense working with NuxtUI v3. However, it's important to note that the knowledge sources provided don't specifically mention TailwindCSS v4 alpha or any special configurations for it. If you're encountering specific issues related to TailwindCSS v4 alpha, you might need to consult the latest Tailwind CSS documentation or the NuxtUI GitHub repository for more up-to-date information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@234662458638336000> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
man.. working without IntelliSense is aids..
I have the same issue, read through the docs and some stack overflow posts but nothing works so far on my side.
Did you have any luck?
- make sure you have a config file in your root
- try upgrading/downgrading the tailwind vscode extension
I have
tailwind.config.ts
in my root.
Tried both current and pre-release versions of the extension.
No solution so faryeah same for me, tried also with
.js
and other supported tailwind config files, because in github there are some issues with v4 and typescriptCan you post your configs? Did you configure the content correctly?
tw autocomplete works fine in all projects ive worked on
For me it looks like the following (Note: I removed all unnecessary config objects which should not be relevant to that)
package.json
nuxt.config.ts
tailwind.config.ts
.vscode/settings.json
Tailwind CSS IntelliSense: v0.13.45 (pre-release)
Ah, I havent tried out TW 4 or the intellisense pre-release. That might be your problem, I dont know