Class Sorting with Prettier, Tailwind CSS IntelliSense & clsx

Hello community, does anyone know a way to use Prettier and Tailwind CSS IntelliSense with clsx? I would like to sort the tailwind classes in clsx functions too.
4 Replies
Andreas Wagner
Andreas WagnerOP15mo ago
I followed these steps, but it seems like something is still missing. https://github.com/lukeed/clsx#tailwind-support
Ryan
Ryan15mo ago
There's this for sorting the classes with the prettier plugin
No description
Ryan
Ryan15mo ago
GitHub
GitHub - tailwindlabs/prettier-plugin-tailwindcss: A Prettier plugi...
A Prettier plugin for Tailwind CSS that automatically sorts classes based on our recommended class order. - GitHub - tailwindlabs/prettier-plugin-tailwindcss: A Prettier plugin for Tailwind CSS tha...
Ryan
Ryan15mo ago
Personally haven't tried it but yeah
Want results from more Discord servers?
Add your server