Skip to content
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

Add extend screen disable min-[*px] class #14515

Closed
tokmo opened this issue Sep 25, 2024 · 2 comments
Closed

Add extend screen disable min-[*px] class #14515

tokmo opened this issue Sep 25, 2024 · 2 comments

Comments

@tokmo
Copy link

tokmo commented Sep 25, 2024

What version of Tailwind CSS are you using?
v3.4.13

What build tool (or framework if it abstracts the build tool) are you using?
Next.js v14.2.11, postcss v8.4.47

What version of Node.js are you using?
v20.17

What browser are you using?
Chrome

What operating system are you using?
MacOS

Describe your issue
When I add extended screens inside the Tailwind config, it disables the min-[*px] class in the HTML.

@wongjn
Copy link
Contributor

wongjn commented Sep 25, 2024

This is a known limitation, see #9558 (comment) for details.

@philipp-spiess philipp-spiess closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2024
@philipp-spiess
Copy link
Member

Yep! Consider migrating the screens config to use a min-based config like this:

module.exports = {
  theme: {
    screens: {
      sm: "640px",
      md: "768px",
      lg: "1024px",
      xl: "1280px",
      "2xl": "1536px",
    },
  },
};

That should generate the min-* and max-* utilities (and it will continue to do so with Tailwind CSS v4 🙂)

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