Skip to content

Tailwind IntelliSense does not list my custom class in @layer Utilities #227

@phongapp

Description

@phongapp

I have created some custom style class inside @layer utilities {}. And when I used those classes in Classname="...", Intellisense did not recommend or list them. But it still works.

Example in my global.css:
`
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
.phong {
width: 300px;
height: 300px;
}
}
`

and I use it: <div className="phong bg-red-200">. It's still working but phong was not listed by Intellisense when typing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions