-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorting of transparent colors #221
Comments
Hey! Can you share a minimal reproduction repo because I think that you might have other versions of each plugin you are mentioning. Trying this manually it sorts it correctly for me. I also made a Tailwind Play: https://play.tailwindcss.com/tbviVA95V2 If you press the For more context, in an older version of Tailwind CSS sorting was based on plugin order (e.g.: background colors are sorted before text colors). However, utilities within the same plugin were sorted based on which utility was found first in your content paths. In newer versions of Tailwind CSS, we ensured that within the same plugin, each utility is also sorted deterministically. |
Hi @RobinMalfait I will do so. If I fail I assume that I have an issue on our setup and will close this issue. |
Hey there's a chance if you have a plugin or a layer that is adding a rule that includes The insiders build of Tailwind CSS should be available in about 15–20m. Once it is I'll post here and if you could give it a try and see if your issue is fixed? Otherwise looking at your setup would be a good idea as it's not reproducible in isolation. Insiders builds can be installed via npm like so:
|
Okay the insiders build is now available:
The version installed should be |
What version of
prettier-plugin-tailwindcss
are you using?v0.5.5
What version of Tailwind CSS are you using?
v3.3.3
What version of Node.js are you using?
v18.16.0
What package manager are you using?
pnpm
What operating system are you using?
Windows with WSL2
Reproduction URL
Describe your issue
The sorting of colors is not consistent.
Transparent utility classes are sorted after colors.
For example these two lists:
bg-black text-white
bg-transparent text-white
The second line will be re-ordered to
text-white bg-transparent
while the first line is kept.The text was updated successfully, but these errors were encountered: