Need help with prettier-plugin-tailwind?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

160 Stars 8 Forks MIT License 68 Commits 10 Opened issues


Sort tailwind classes in HTML with Prettier.

Services available


Need anything else?

Contributors list

# 168,324
Visual ...
22 commits

npm version

Prettier Plugin Tailwind

Sort tailwind classes with Prettier.


Go from this:


To this:


This plugin reads your

to sort tailwind classes in your project.

Installation VSCode

Install Prettier and the plugin into your project locally:

yarn add --dev prettier prettier-plugin-tailwind

Other IDE's are supported.

Note: Prettier 2.0.0 or greater is required as a peer dependency.

Prettier Options

These options can be set in your

file to change the behavious of this plugin.

More details can be found in

Contributing 🙌

Contributions are more than welcome. If you see any changes fit, go ahead and open an issue or PR.

Any support is a huge motivation, thank you very much!

Buy Me A Coffee

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.