Skip to content

Missing classes with pseudo-class prefixes in Clojure/Script #18336

@eneroth

Description

@eneroth

What version of Tailwind CSS are you using?

v4.1.10

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

postcss-cli 11.0.1

What version of Node.js are you using?

v24.2.0

What browser are you using?

Chrome, Safari, Firefox

What operating system are you using?

macOS

Reproduction URL

I'm not sure how to provide you with a reproduction URL for this, but here's a screenshot that shows the class present on the DOM element, while it's missing in the class list:

Image

Describe your issue

It seems that Tailwind doesn't extract pseudo-classes such as :lg:pr-4 or :first:sm:pl-6. Example code:

(e/defn Widget 
  [props]
  (e/client 
    ($ :div {:class [:first:sm:pl-6 :first:lg:pl-8]})))

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