Replies: 1 comment 1 reply
-
--breakpoint-mobile: max 500px;
--breakpoint-tablet: 501px 640px;
--breakpoint-medium: 641px 800px;
--breakpoint-large: 801px 1023px;
--breakpoint-largeXL: 1024px 1279px;
--breakpoint-underLaptop: max 1023px;
--breakpoint-courseContent: max 1080px; These are invalid, as you might have guessed. You'd want to register these via @custom-variant mobile (@media (max-width: 500px));
@custom-variant tablet (@media (min-width: 501px) and (max-width: 640px));
Etc… |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I used upgrade tools command line : $ npx @tailwindcss/upgrade
The command generated this breakpoint:
`@theme {
--breakpoint-mobile: max 500px;
--breakpoint-tablet: 501px 640px;
--breakpoint-medium: 641px 800px;
--breakpoint-large: 801px 1023px;
--breakpoint-largeXL: 1024px 1279px;
--breakpoint-underLaptop: max 1023px;
--breakpoint-courseContent: max 1080px;
--breakpoint-m: 640px;
--breakpoint-mXL: 800px;
--breakpoint-laptop: 1024px;
--breakpoint-desktop: 1280px;
--breakpoint-desktopXL: 1680px;
--breakpoint-desktopXXL: 2024px;
--breakpoint-tableMin: 1320px;
--breakpoint-tableDemoMin: 1150px;
}`
some breakpoint don't work, like:
--breakpoint-tablet: 501px 640px; --breakpoint-medium: 641px 800px; --breakpoint-large: 801px 1023px; --breakpoint-largeXL: 1024px 1279px;
I'm using:
Tailwind version: v4.0.6
NextJS: 14.1.4
What's the solution ?
Beta Was this translation helpful? Give feedback.
All reactions