Replies: 3 comments 4 replies
-
Are you using TailwindCSS v3 or v4? |
Beta Was this translation helpful? Give feedback.
1 reply
-
First thing is to check which Tailwind version you’re on with: npx tailwindcss -v
// tailwind.config.js
module.exports = {
theme: {
extend: {
screens: {
toto: "1921px",
}
}
}
} Then you can use it like this: <div className="grid grid-cols-6 toto:grid-cols-3 gap-4">
@theme {
--breakpoint-toto: 1921px;
} So it’s the same idea, just depends on whether you’re on v3 or v4. |
Beta Was this translation helpful? Give feedback.
1 reply
-
V4 fine breakpoint worked.thanks |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
in my vite project,
I want to enable 6 columns if my screen width is <1920px and 3columns when it is >1921px
<div className="h-full grid grid-cols-6 toto:grid-cols-3 gap-4">
I extended theme in tailwind.config.js but has no effect.
theme: {
extend: {
screens: {
toto: "1921px", // applies when screen > 1920px
},
Beta Was this translation helpful? Give feedback.
All reactions