Skip to content
PluginStats

tailwind-prettier weekly downloads statistics

By fittheweb · npm · Prettier plugins

Prettier plugin to auto-wrap and sort Tailwind CSS classes.

View on npm Fresh · Dec 6, 2026

tailwind-prettier has 69 recorded weekly downloads on npm, an increase of 306% over the past 30 days, ranking #2701 of 3,247 tracked listings.

Weekly downloads
69
Official API · Dec 5, 2026
7-day growth
+1280%
+64 weekly downloads
30-day growth
+306%
+52 weekly downloads
90-day growth
—
Insufficient history
Rank
#2701
▲ 403 in 7 days

About tailwind-prettier

tailwind-prettier

Automatically formats Tailwind CSS classes in your HTML, JSX, or TSX files.

  • ✅ Sorted in recommended Tailwind order
  • ✅ Automatically wraps long class lists
  • ✅ Supports both class and className
  • ✅ Compatible with className={""} and className={``}
  • ✅ Works in .js, .jsx, .ts, .tsx

✨ Example

Before
<div className="bg-white text-center py-4 px-6 shadow-md rounded-lg hover:bg-gray-100 transition duration-300 ease-in-out">
After
<div
  className="
    bg-white
    hover:bg-gray-100
    px-6
    py-4
    rounded-lg
    shadow-md
    text-center
    transition
    duration-300
    ease-in-out
  "
>

Also works with template literals:

<div
  className={`
    flex
    flex-col
    items-center
    justify-center
    absolute
    w-[calc(100%-16px)]
    text-[36px]
    font-[700]
    ${current === index ? "text-[--main]" : "text-[--grey2]"}
  `}
/>

📦 Installation

npm install --save-dev prettier tailwind-prettier

🔧 Usage

  1. Create a .prettierrc.cjs file in your project root:
module.exports = {
  plugins: [require.resolve("tailwind-prettier")],
  // Other Prettier settings...
};
  1. Add this to your VSCode settings.json:
{
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.formatOnSave": true
}
  1. ⚠️ Important: After configuring .prettierrc.cjs, fully restart VSCode for changes to take effect.

🧪 Test it locally

npm link
cd your-project
npm link tailwind-prettier

Run Prettier manually:

npx prettier --write src/**/*.tsx

🐞 Known Issues

  • VSCode may scroll unexpectedly after formatting
  • Indentation inside className={``} blocks is not fully accurate yet

🚧 Upcoming Improvements

  • Prevent scroll jump after formatting
  • Improve indentation for template literal class blocks

📜 License

MIT

Description from the npm listing.

  • prettier-plugin
  • tailwind
  • formatter
  • auto-wrap
  • prettier
  • tailwindcss

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

tailwind-prettier weekly downloads on npm, last 90 days: 69 weekly downloads as of Dec 5, 2026.tailwind-prettierWeekly downloads on npm · Last 90 days69downloads / week010203040506070Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
tailwind-prettier weekly downloads on npm, last 90 days: 69 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

tailwind-prettier weekly downloads growth on npm: +1280% over 7 days, +306% over 30 days, 90-day growth unavailable.tailwind-prettierWeekly downloads growth on npm69downloads / week now7-day growth+64 weekly downloads+1280%30-day growth+52 weekly downloads+306%90-day growth+69 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
tailwind-prettier weekly downloads growth on npm: +1280% over 7 days, +306% over 30 days, 90-day growth unavailable.

Ranking history

tailwind-prettier npm ranking history: currently #2701 (by weekly downloads).tailwind-prettiernpm ranking · by weekly downloads · Last 90 days#2701current rank#1800#2000#2200#2400#2600#2800#3000#3200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
tailwind-prettier npm ranking history: currently #2701 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 136, #1 (overall #2,701)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 6, #1 (overall #101)
Prettier plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for tailwind-prettier
Date (UTC)Weekly downloadsChange vs. previous
69+2
670
67-1
68+64
4+1
30
3-2
50
5-31
360
36+1
350
35-1
36—

Similar npm Prettier plugins plugins

All 20 tailwind-prettier alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/tailwind-prettier. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.