Skip to content

[v4] custom utility class gets overridden by default utility class #16707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
djlguzman opened this issue Feb 21, 2025 · 3 comments
Closed

[v4] custom utility class gets overridden by default utility class #16707

djlguzman opened this issue Feb 21, 2025 · 3 comments

Comments

@djlguzman
Copy link

djlguzman commented Feb 21, 2025

What version of Tailwind CSS are you using?

v4.0.7

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

Tailwind Play

What version of Node.js are you using?

Tailwind Play Node Version

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

https://play.tailwindcss.com/z53giNsT01?layout=horizontal&size=810x720

Describe your issue

In the tailwind play link above, it seems that the custom 3xl breakpoint from theme is not triggered when changing viewport width size to > 1100px. I see in dev tools that the custom class is indeed generated but the default md breakpoint takes priority.

@wongjn
Copy link
Collaborator

wongjn commented Feb 21, 2025

See #15450 (comment)

@philipp-spiess
Copy link
Member

Yep, you want to use rem here so it's sorted. We'll get this updated in the docs.

@philipp-spiess
Copy link
Member

Marking this as a duplicate of tailwindlabs/tailwindcss.com#2099

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants