NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3991 most downloaded on npm
A Prettier plugin for sorting Tailwind CSS classes.
Last release 6 days ago
29 Sep 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
263 releases · first in 2022
One column per quarter.
Don't remove escape sequences when sorting classes in JavaScript string literals, which could produce invalid code in Vue attribute expressions
Require at least Prettier 3.7.x
/sorter (#438)canCollapseWhitespaceIn handling for "tailwindPreserveWhitespace": true (#428)Same as v0.7.2, since v0.7.3 contained breaking changes.
Same as v0.7.2, since v0.7.3 contained breaking changes.
Collapse whitespace in template literals with adjacent quasis
Load compatible plugins sequentially to work around race conditions in Node.js
Match against correct name of dynamic attributes when using regexes
Format quotes in @source , @plugin , and @config
@source, @plugin, and @config (#387)ParserOptions and RequiredOptions types (#354)prettier-plugin-import-sort (#385)Add support for OXC + Hermes Prettier plugins ( #376 , #380 )
Prevent Svelte files from breaking when there are duplicate classes
Add internal (unsupported) option to load Tailwind CSS using a different package name
Support TypeScript configs and plugins when using v4
Add support for @zackad/prettier-plugin-twig
Introduce tailwindStylesheet option to replace tailwindEntryPoint
tailwindStylesheet option to replace tailwindEntryPoint (#330)- Fix crash
Improved performance with large Svelte, Liquid, and Angular files
Add support for prettier-plugin-multiline-arrays
Only re-apply string escaping when necessary
- Export PluginOptions type
PluginOptions type (#292)Improve detection of string concatenation
Only remove duplicate Tailwind classes
Add new tailwindPreserveDuplicates option to disable removal of duplicate classes
tailwindPreserveDuplicates option to disable removal of duplicate classes (#276)Remove extra whitespace around classes
Fix detection of v4 projects on Windows
Add support for @zackad/prettier-plugin-twig-melody
@zackad/prettier-plugin-twig-melody (#255)Add support for prettier-plugin-sort-imports
Bumped bundled version of Tailwind CSS to v3.4.1
Bumped bundled version of Tailwind CSS to v3.4
Fixed location of embedded preflight CSS file
Re-enable support for prettier-plugin-marko
prettier-plugin-marko (#229)Fix sorting inside dynamic custom attributes
Fix sorting inside {{ … }} expressions when using @shopify/prettier-plugin-liquid v1.3+
{{ … }} expressions when using @shopify/prettier-plugin-liquid v1.3+ (#222)Sort classes inside className in Astro
Type tailwindFunctions and tailwindAttributes as optional
Fix CJS __dirname interop on Windows
__dirname interop on Windows (#204)Fix intertop with bundled CJS dependencies
Updated Prettier peer dependency
This plugin now requires Prettier v3+
Don't move partial classes inside Twig attributes
Export types for Prettier config
Added support for prettier-plugin-marko
Remove support for @prettier/plugin-php
@prettier/plugin-php (#152)Don't break liquid tags inside attributes when sorting classes
Support ESM and TS config files
Fix class sorting in capture liquid tag
capture liquid tag (#131)Add support for sorting class attribute on custom elements and Astro components
class attribute on custom elements and Astro components (#129)class attribute on components and custom elements in Astro (#129)Don't sort classes in Glimmer concat helper
Add prettier plugins to peer dependencies
Fix support for latest Shopify Liquid plugin
Don't bundle prettier-plugin-svelte
prettier-plugin-svelte (#101)As of v0.2.0 we no longer bundle prettier-plugin-svelte as part of this plugin, so to bring back formatting for Svelte code you need to explicitly install that dependency yourself:
npm install -D prettier-plugin-svelte
Next, disable autoloading by setting pluginSearchDirs to false in your Prettier configuration, and add any plugins you're using to your plugins list, making sure prettier-plugin-tailwindcss is last in the list:
// .prettierrc
{
// ..
"plugins": [
"prettier-plugin-svelte",
"prettier-plugin-tailwindcss" // Must come last
],
"pluginSearchDirs": false
}
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix error when using Angular pipes
Add support for Glimmer / Handlebars
Update prettier-plugin-svelte to v2.7.0
Remove whitespace tidying and duplicate class removal due to issues with whitespace removal
Add whitespace tidying and duplicate class removal
Use Tailwind's getClassOrder API when available
Fix single quotes being converted to double quotes
Fix error when no Prettier options provided
Your coding agent can read these notes before it upgrades. Set up the MCP server →