You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! I'm gonna definitely need a reproduction for this. Especially because:
Tailwind CSS v4 uses tw: as a prefix at the beginning of the class name rather than tw- in the middle (between variants and the utility name)
This suggests that IntelliSense is picking up Tailwind CSS v3.x and not v4 per your comment saying you're using v4.0.15
IntelliSense uses Tailwind CSS itself to generate suggestions so it seems that v3 also thinks a prefix is being used and is configured to tw-
If you are definitely using v4 then it might be invalid CSS causing it to fail to discover / parse stuff. And maybe the presence of the config file is triggering a fallback to v3 but if the config file doesn't have a prefix inside that would be incredibly weird since it's obviously being picked up from somewhere.
Its very odd. Im trying tailwind v4 on another project atm and this issue is NOT present. Only real difference is that the other project uses Vite. Both running on DDEV.
Interestingly the issue is present on two different machines / locations — home setup using MBPro, then a Mac Studio machine — obv. both running off the same repo + DDEV setup though... so should be same codebase.
Old projects running Tw v3 are fine still, must be something with my VScode workspace, Im inclined to try setting a new project folder. Will do this later today. I'll try updating another project to TW4.
If you wanted to see a reproduction, im not too sure what the best way to achieve this is, I could share the repo for this problem project?
What version of VS Code are you using?
1.98.2
What version of Tailwind CSS IntelliSense are you using?
0.14.11
What version of Tailwind CSS are you using?
"tailwindcss": "^4.0.15",
What package manager are you using?
npm
What operating system are you using?
OSX 15.3.2
Tailwind config
VS Code settings
Reproduction URL
n/a
Describe your issue
Tailwind classes have started to be suggested with a 'tw-' prefix — without me having (knowingly!) asked for this.
What is particularly annoying is that the NON tw-prefix tailwind colors no longer have the useful colour swatch, while the 'tw-' prefix ones do?!!
See attached
here-s a screenshot of what the prompt does — I want to carry on using 'regualr' tailwind classes without the prefix ideally!

See screenshot below
The text was updated successfully, but these errors were encountered: