-
Notifications
You must be signed in to change notification settings - Fork 202
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
[v4] Intellisense autocomplete is not working for my project structure #1139
Comments
Same here. Meanwhile I removed v4 and reinstall ^v3.4.1 |
Its working fine now. |
I got it working in tailwind v4 just by creating same tailwind.config.js file in project directory as i used in v3 - config file is no longer required in version 4 but the plugin seems to be based on it. |
@ezrnew I'm afraid it's not the solution as according to #1153 (comment) having old JS config file only forces InteliSense into a fallback TW 3 mode. |
I'm having the same problem with NextJS default package structure. But in my case I couldn't make it work not even with the fallback nor the Tested it with tailwindcss 4.0.0 and 4.0.1 Sometimes I manage to make it work by removing all theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px',
},
},
extend: {
colors: {
background: 'rgba(var(--color-background), <alpha-value>)',
content: 'rgba(var(--color-content), <alpha-value>)',
'content-secondary': 'rgba(var(--color-content-secondary), <alpha-value>)',
'content-disabled': 'rgba(var(--color-content-disabled), <alpha-value>)',
'content-hint': 'rgba(var(--color-content-hint), <alpha-value>)',
border: 'rgba(var(--color-border), <alpha-value>)',
primary: 'rgba(var(--color-primary), <alpha-value>)',
'primary-content': 'rgba(var(--color-primary-content), <alpha-value>)',
},
},
}, I'll have to wait a bit longer to upgrade to the v4 |
My project structure is as follows:
Using the follow line in the @import 'tailwindcss' source("../../../../"); Or rather, I can't get it to work reliably; If I add "@tailwindcss/postcss": "4.0.3",
"prettier-plugin-tailwindcss": "0.6.11",
"tailwindcss": "4.0.3", Ideally, the LSP would figure it out on its own that I'm using Neovim, next.js, turborepo and turbopack (Latest version of all of them, as of 2025-02-02 |
I cant get this working either. When I switch to project that uses v3 its working fine. on project with v4 no luck. I am using nvim with the language server. |
if anyone still facing same issue then, you will find the solution here. |
I also encountered the same issue. |
I've encountered the same problem on the first project I've setup with Tailwind 4. My directory structure for the entrypoint is Problem is I have many Tailwind projects all with different entry points... hopefully the automatic detection will improve because this extension is a godsend. |
For me the problem was not with the project structure. I removed
|
What version of VS Code are you using?
For example: 1.96.4
What version of Tailwind CSS IntelliSense are you using?
For example: 0.14.1
What version of Tailwind CSS are you using?
For example: 4.0.0
What package manager are you using?
For example: npm
What operating system are you using?
For example: macOS
Tailwind config
Describe your issue
I'm just trying to upgrade my TailwindCSS 3 stack to v4 a Intellisense is not providing autocomplete.
My directory structure:
When I open index.php Intellisense is not working me and in plugin output I read
[GLOBAL] No matching project for document
.Only workaround I've found is to create workspace related .vscode settings.json and force global.css as config file:
In Tailwind v3 I used to have content: [] key defined in tailwind.config.js and this worked without an issue.
The text was updated successfully, but these errors were encountered: