-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Warning when max/min variants are used with custom media query screens #10737
Comments
Hey! So, this exact situation is something we discussed when implementing the The reason that they don’t show up in this case, for We chose this tradeoff to ensure that Tailwind CSS Intellisense would not provide nonsense completions for variants that are not generated in the first place. There would be no reason to provide completions for I’ll note that any use of an arbitrary value, e.g. We absolutely recognize that this does not provide an optimal DX and it is something we intend to improve. However, at the moment, doing so correctly would require a good bit of brainstorming as well as coordinated changes across multiple projects which is why we opted for what we do today and only warn for arbitrary values. Hope that helps! ✨ |
Hey! I am facing some issues related to tailwind. If I use any arbitrary values like [100px] its working in dev environment. But break when I create build and run start. |
The problem only happened to me when I use |
What version of Tailwind CSS are you using?
v3.2.7
What build tool (or framework if it abstracts the build tool) are you using?
tailwindcss CLI
What version of Node.js are you using?
v16.17
What browser are you using?
N/A
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/Ol16pys9P8?file=config
Describe your issue
When the theme is extended with additional non-string screen breakpoints, the
min-
andmax-
breakpoints no longer function. It looks like there's a warning for this case, but it doesn't seem to be triggered.The text was updated successfully, but these errors were encountered: