Skip to content

Tailwind generates empty classes for certain classnames #17922

@eloraa

Description

@eloraa

What version of Tailwind CSS are you using?

V^4.1.5

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

Next.js 15.3.1, React ^19.1.0, @tailwindcss/postcss ^4.1.5

What version of Node.js are you using?

v20.11.1

What browser are you using?

Chrome, Firefox

What operating system are you using?

Windows, Linux

Reproduction URL
https://dmwlz8-3000.csb.app/shop
https://codesandbox.io/p/devbox/dmwlz8 (Minimal reproduction of my issue)

Describe your issue

Image

For certain className, Tailwind is appending empty classes (you can see in the image, also from the reproduction link), especially those with breakpoints. I tried switching devices and reinstalling everything, but I still get the same output.

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