Skip to content

(bug): Custom CSS has no intelligent prompts #18301

@luzilong2005

Description

@luzilong2005

**What version of Tailwind CSS are you using? **

v4.1.8

**What build tool (or framework if it abstracts the build tool) are you using? **

Vite 6.3.5

**What version of Node.js are you using? **

v20.14.0

**What browser are you using? **

Chrome

**What operating system are you using? **

Windows

Reproduction URL

Describe your issue

Use the following in the css file containing @import "tailwindcss" :

.flex-center {
  @apply flex items-center justify-center;
}

or

@layer utilities {
  .flex-center {
    @apply flex items-center justify-center;
  }
}

When I'm on the element tag 'class', it normally has the intelligent prompt of 'tailwindcss', but does not contain 'flex-center'

Metadata

Metadata

Assignees

No one assigned

    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