Skip to content

[intellisense]: IntelliSense hides utility if name matches custom variant #1355

Closed
@programming-with-ia

Description

@programming-with-ia

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

@custom-variant mica (&.mica);

@layer utilities {
 
  .mica {
    @apply bg-background
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions