-
this is driving me bonkers I can't seem to figure out why my costume break point's aren't sorting. I recently upgraded to v4 and I got everything working expect this. My best guess is that I am doing something wrong with @theme or my prettier isn't setup right but the break points are the only thing it's not sorting right, when I hover over xsm i get the intellisense I am all out of idea's how to fix this. With my setup in v3 my breakpoints just automatically sorted correctly so I have no idea why this is not. tailwindcss v4.0.13 any and all idea's would be a great help
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Facing similar issue. When i start a new project, I create few custom breakpoints depending on design requirements in tailwind.config.ts for example
and use it like
This used to work flawlessly but now in the new version when i create same custom breakpoints in CSS file like
and use it the same way like
It won't work unless i add !important rule like
|
Beta Was this translation helpful? Give feedback.
-
I figured out the issue, I feel dumb for not thinking about this earlier. I guess with the new version you need to specify the stylesheet in .prettierrc once I did that it sorted properly.
|
Beta Was this translation helpful? Give feedback.
I figured out the issue, I feel dumb for not thinking about this earlier. I guess with the new version you need to specify the stylesheet in .prettierrc once I did that it sorted properly.