Skip to content

Some classes are not generated in Ruby/HAML since upgrading to Tailwind 4 #17813

Closed
@jeremybdk

Description

@jeremybdk

What version of Tailwind CSS are you using?

4.1.4

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

Standalone CLI

What version of Node.js are you using?

20.19

What browser are you using?

N/A

What operating system are you using?

N/A

Reproduction URL

https://github.com/jeremybdk/tailwindhaml

Describe your issue

We are using custom classes like "w-[16px] h-[16px]" sometimes in ruby variable used in partials.
But it seems that they are not parsed correctly anymore since switching to Tailwind 4. We never had that issue on Tailwind 3.

I've added a small sample of a haml file that in my opinion should be parsed correctly and as you can see in the output some of the used classes like "w-[16px] h-[16px]" and "w-[12px] h-[12px]" are not included in the output.css while w-[20px] h-[20px] are included in the output.css

thank you

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