-
Notifications
You must be signed in to change notification settings - Fork 219
[intellisense]: IntelliSense hides utility if name matches custom variant #1355
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
You can try registering the class name with @custom-variant mica (&.mica);
-@layer utilities {
- .mica {
+@utility mica {
@apply bg-background
}
-} |
Hey! The intellisense plugin will only match actual utilities and variants. The If you want it to be a utility, you have to use the |
The syntax highlighting is something I'm working on fixing. Spent some time on it yesterday and hoping I don't have to copy the entire CSS theme from CSCode but not sure yet. Was hoping it was going to get proper nesting support by now but it has not so it'll take some work to do so. |
Describe your issue
When I define a custom utility and a custom variant with the same name, IntelliSense in VSCode only shows the variant — the utility is missing from suggestions.
Tailwind generates the utility class correctly in the final CSS output. This is only a VSCode IntelliSense issue.
What version of Tailwind CSS are you using?
tailwind
:v4.0.15
windows
:11
vscode
:latest
Tailwind CSS IntelliSense
:latest
Example
The text was updated successfully, but these errors were encountered: