Replies: 1 comment 2 replies
-
Hey! Make sure that you are adding new values using /** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: { // This will ensure the new `laptop` screen is added
screens: {
'laptop': '1024px',
}
},
},
plugins: [],
} /** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
screens: { // Without `extend`, this will override _all_ screens
'laptop': '1024px',
},
},
plugins: [],
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of Tailwind CSS are you using?
For example: v2.0.4
tailwind 3.3.2
nextjs 13.4.6
nodejs 18.16.1
chrome
macos
in doc https://tailwindcss.com/docs/responsive-design , it reads:
Tailwind generates a corresponding max-* modifier for each breakpoint
however, if i customize screens, then max-* is not available, only customized screens is available
Beta Was this translation helpful? Give feedback.
All reactions