How to define the sortable custom breakpoints and container sizes #17355
Unanswered
kostiantyn-petlia
asked this question in
Help
Replies: 1 comment
-
The same story with using custom px-17.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm continuing facing issues with Tailwind where could not expect them, so I need a bit more my effort and your help to solve them. Thank you in advance.
The issues is that custom variation of screen sizes are not sorted.
The
3xl
variation of screen is added and works well, but the3xl:class-name
is not sorted.<div class="3xl:px-12 container mx-auto mb-7 grid grid-cols-1 gap-10 px-4 lg:grid-cols-3 2xl:px-10">
The order of classes is important in Tailwind for comfortable work and it blocks me.
Here are my files:
_theme.css:
_container.css:
main.css:
Root:
prettier.config.js is configured in the root of a monorepo repository (as well as Stylelint, etc.):
Inner:
Vite, Tailwindcss is added in the theme's package.json and configured there.
I understand that it can be the 'prettier-plugin-tailwindcss' issue.
I use a monorepo and I saw there was an issue with it and v4. It seems solved or not?
And I set the tailwindStylesheet as it's recommended here.
Where am I wrong? It seems I do something in a wrong way, it should work form the box.
Beta Was this translation helpful? Give feedback.
All reactions