Replies: 2 comments 2 replies
-
You could create your own variant: @custom-variant xsm @media (width <= 575.98px); Or do --breakpoint-xsm: 576px; <div class="max-xsm:text-black"> Or <div class="max-sm:text-black"> |
Beta Was this translation helpful? Give feedback.
-
Using custom breakpoints Use the --breakpoint-* theme variables to customize your breakpoints: app.css @import "tailwindcss"; Tailwind uses rem for the default breakpoints, so if you are adding additional breakpoints to the defaults, make sure you use rem as well. Removing default breakpoints To remove a default breakpoint, reset its value to the initial keyword: app.css @import "tailwindcss"; --breakpoint-*: initial app.css @import "tailwindcss"; |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
how can I set the screen range for xsm: 0 to 575px in tailwindcss version 4
Beta Was this translation helpful? Give feedback.
All reactions