prettier-plugin-tailwindcss icon indicating copy to clipboard operation
prettier-plugin-tailwindcss copied to clipboard

Plugin sorts utilities with modifiers incorrectly if Tailwind is not installed

Open probably-not opened this issue 8 months ago • 0 comments

What version of prettier-plugin-tailwindcss are you using?

For example: v0.6.11

What version of Tailwind CSS are you using?

For example: v4.0.11

What version of Node.js are you using?

For example: v22.5.1

What package manager are you using?

For example: npm

What operating system are you using?

For example: macOS

Reproduction URL

https://github.com/probably-not/repro-tailwind-prettier

Describe your issue

If I don't have Tailwind explicitly installed in my package.json or installed globally on my machine's system, the plugin will sort the utilities with modifiers incorrectly. Once tailwind is either installed on the system globally or installed in the package.json, then the utilities with modifiers will be properly sorted.

probably-not avatar May 06 '25 14:05 probably-not