CSS classes cannot begin with digits. For this reason, Tailwind uses \3 to escape them. For instance, 2xl:col-span-10 is transformed into .\32xl\:col-span-10 { grid-column: span 10 / span 10; } in the final CSS file.
The current Tailwind CSS class sorter implementation does not handle this correctly. As it cannot identify suitable classes beginning with digits, it places them at the start of the sorted list.
CSS classes cannot begin with digits. For this reason, Tailwind uses
\3
to escape them. For instance,2xl:col-span-10
is transformed into.\32xl\:col-span-10 { grid-column: span 10 / span 10; }
in the final CSS file.https://github.com/tailwindlabs/tailwindcss/issues/3069
The current Tailwind CSS class sorter implementation does not handle this correctly. As it cannot identify suitable classes beginning with digits, it places them at the start of the sorted list.
Expected output:
Current output:
I simply remove the escape characters from the class name.