-
Notifications
You must be signed in to change notification settings - Fork 219
tailwindcss-intellisense not working correctly with sveltekit #291
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
I'm guessing this may be caused by the absence of a tailwind.config.js or tailwind.js file, which according to the readme is required for the intellisense to work. The svelte-add package creates a tailwind.config.cjs file. |
@MstrBlonde Thank you for your help. According to #198 , the extension should accept cjs file since version 0.5.5 … |
I just happened to notice a new version of the plugin was pushed yesterday, and now I've got working intellisense in my SvelteKit project! Hopefully it works for you as well. Good luck! |
for me it's the other way around, 0.5.10 breaks it completely while 0.5.9 works fine |
Hey @Yiak. I can't reproduce the issue 🤔 Are you seeing anything in the output panel? You can view this using the |
@bradlc Thank you for the command. Here's the output:
And I have uploaded a svelte-kit+tailwindcss sample here, just in case you wanna have a look. |
Adding the windicss plugin provides all the necessary tailwind intellisense (at least that I used) without the need to install the actual windicss package. This should be regarded as a temporary workaround though. |
@Yiak Is this still an issue with the latest version of the extension ( |
@bradlc Everything looks good with the latest version of the extension. Thank you for your effort. |
1. Auto suggestions don’t show up at all.
I have tried everything mentioned in #151 & #252 and still no luck.
I tried both on pc and mac and none of them worked properly.
My VSCode version info on PC and mac:
2.
@apply
in the comment will cause the highlighting to be inaccurate.eg:


Before:
After:
To reproduce:
The text was updated successfully, but these errors were encountered: