-
Notifications
You must be signed in to change notification settings - Fork 219
Tailwind CSS IntelliSense not work with tailwindcss4.0 #1245
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
Comments
Same for me, absolutely without any suggestion. (Im on testing project with Tailwind CLI without any JS). Short video: https://is.gd/NdKORW |
Temporary solution. #1153 (comment) You don't need to create tailwind.config.js (it's useless - TW4 doesn't work with it anymore). Just reload the window -> ctrl + shift + P > Reload window Short video: -> https://is.gd/fxEzNm |
But reload does not solve everything -> https://is.gd/dAHXZo |
I am using src/assets/styles/tailwind.css @import "element-plus/dist/index.css";
@import "tailwindcss/theme.css";
@import "./reset.css";
@import "./variables.css";
@import "./globals.scss";
@import "./element-plus-custom.scss";
body.body {
@import "tailwindcss/utilities.css";
} src/assets/styles/element-plus-custom.scss Tailwind CSS IntelliSense not work .el-form--inline {
.el-form-item {
// .el-form-item__content {
// width: var(--el-form-inline-content-width);
// }
.el-input, .el-cascader, .el-select, .el-autocomplete {
width: var(--el-form-inline-content-width);
}
}
}
.el-button.is-link + .el-button.is-link {
margin-left: 4px;
} Tailwind CSS IntelliSense work .el-form--inline {
.el-form-item {
/* .el-form-item__content {
width: var(--el-form-inline-content-width);
} */
.el-input, .el-cascader, .el-select, .el-autocomplete {
width: var(--el-form-inline-content-width);
}
}
}
.el-button.is-link + .el-button.is-link {
margin-left: 4px;
} |
@lihanspace See this comment about preprocessors: #1154 (comment) |
@Kcko Best I can tell from your video you're expecting to see a suggestion for |
@527430408 Can you please provide a reproduction? |
Great to hear it! thx for ur work. But what is the problem with intellisense without reloading the whole editor? I understand that TW 4 is relatively new and this plugin it's not finished yet, I guess I could just read some statements about it because it intellisense not at all / wrong / with reload / incomplete :-) And again, thank you for taking the time and energy to pursue this. |
This should not be necessary. Would you mind opening a separate issue with step-by-step instructions on how to reproduce this? Please include information about your environment (VSCode version, operating system, node version, etc…) |
Ok, i will create separate issue with video and complete environment info, tonight. EDIT: I just tried it and it works fine, was there an update? When I tried it 1-2 days ago (first time with TW 4, clean project, build via tailwindcss, I had to reload the whole editor via developer window, then it just started hinting. But otherwise, of course, it still has a problem with hinting in css (variables). See: https://is.gd/xq8vwB I assume that this is being worked on, it's not functional yet, or am I doing something wrong? |
My project has also been upgraded to tailwind v4 and no intellisense with latest versions of the extension. I'm using VSCode Insiders, constantly updating to latest.
|
+1 |
Uh oh!
There was an error while loading. Please reload this page.
What version of VS Code are you using?
For example: v1.97.2
What version of Tailwind CSS IntelliSense are you using?
For example: v0.14.8
What version of Tailwind CSS are you using?
For example: v4.0.9
What package manager are you using?
For example: npm
What operating system are you using?
For example: macOS
Tailwind config
VS Code settings
Reproduction URL
A public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways.
Describe your issue
My project used tailwind3.0,Tailwind CSS IntelliSense is working.
I upgraded the Tailwind CSS version to 4.0.It's working.
Bug Tailwind CSS IntelliSense is does not working.
The text was updated successfully, but these errors were encountered: