Skip to content
PluginStats

prettier-plugin-tailwind-align weekly downloads statistics

By sudhirgadpayle · npm · Prettier plugins

Prettier plugin that sorts Tailwind CSS classes and aligns object properties — in one pass.

View on npm Fresh · Dec 6, 2026

prettier-plugin-tailwind-align has 7 recorded weekly downloads on npm, unchanged over the past 30 days, ranking #3189 of 3,247 tracked listings.

Weekly downloads
7
Official API · Dec 5, 2026
7-day growth
-22.2%
-2 weekly downloads
30-day growth
0.0%
0 weekly downloads
90-day growth
-30.0%
-3 weekly downloads
Rank
#3189
▼ 206 in 7 days

About prettier-plugin-tailwind-align

<div align="center">

prettier-plugin-tailwind-align

One Prettier plugin. Two formatters. Zero conflicts.

Sorts Tailwind CSS utility classes and vertically aligns object properties — in a single pass.

npm version npm downloads license node

</div>

Table of Contents


Why this exists

Prettier only allows one plugin to own a given parser hook (e.g. parsers["typescript"]). When prettier-plugin-tailwindcss and @huggingface/prettier-plugin-vertical-align are both listed in "plugins", whichever comes last silently wins the hook — breaking the other one with no error or warning.

The common workaround is a two-pass setup: run Tailwind sorting in one Prettier pass, alignment in another. This is fragile, slow, and ties your CI to a specific script order.

prettier-plugin-tailwind-align eliminates the problem entirely. It composes both behaviours internally so Prettier sees exactly one plugin, runs one pass, and both Tailwind class sorting and object alignment happen in the correct order — guaranteed.


Installation

# npm
npm install --save-dev prettier-plugin-tailwind-align

# pnpm
pnpm add -D prettier-plugin-tailwind-align

# yarn
yarn add -D prettier-plugin-tailwind-align

# bun
bun add --dev prettier-plugin-tailwind-align

Peer dependencies — prettier and prettier-plugin-tailwindcss must be installed separately (they are not bundled).

npm install --save-dev prettier prettier-plugin-tailwindcss

Quick start

Add the plugin to your .prettierrc (or prettier.config.js / prettier.config.ts):

{
  "plugins": ["prettier-plugin-tailwind-align"],
  "tailwindStylesheet": "./app/globals.css",
  "alignInGroups": "always"
}

That's it. Remove any separate prettier-plugin-tailwindcss or @huggingface/prettier-plugin-vertical-align entries — this plugin replaces both.


Options

All options from prettier-plugin-tailwindcss are fully supported and passed through unchanged — tailwindConfig, tailwindStylesheet, tailwindFunctions, tailwindAttributes, and so on.

In addition, this plugin adds the following options:

Complete .prettierrc example
{
  "plugins": ["prettier-plugin-tailwind-align"],
  "tailwindStylesheet": "./app/globals.css",

  "alignInGroups":           "always",
  "tailwindAlignAttributes": ["myClass", "triggerClass"],
  "tailwindAlignFunctions":  ["myMerge", "styled"],
  "tailwindAlignWidth":      0,
  "tailwindAlignGroups":     false,
  "tailwindAlignMinLength":  0,
  "tailwindAlignObjectValues": true
}

Option Reference
OptionTypeDefaultDescription
alignInGroups"never" | "always""never"Alignment scope inside object blocks
tailwindAlignAttributesstring[][]Extra JSX attribute names to treat as class strings
tailwindAlignFunctionsstring[][]Extra function names whose arguments are class strings
tailwindAlignWidthnumber0Column width before wrapping; 0 = inherit printWidth
tailwindAlignGroupsbooleanfalseGroup classes by Tailwind category (reserved, future feature)
tailwindAlignMinLengthnumber0Min class string length to trigger formatting; 0 = always
tailwindAlignObjectValuesbooleantrueVertically align values in object class maps

alignInGroups

Controls how alignment groups are computed inside object literals, interfaces, type literals, and class bodies.

ValueDefaultDescription
"never"✅Every alignable property in the same block shares one alignment column.
"always"A blank line starts a new independent group. Each group aligns to its own column.
"never" — whole-block alignment

All properties align to the longest key in the entire block.

const palette = {
  red:       "#ef4444",
  green:     "#22c55e",
  blue:      "#3b82f6",
  darkGreen: "#166534",
};
"always" — group-level alignment

A blank line starts a new independent alignment group.

const palette = {
  red:   "#ef4444",
  green: "#22c55e",
  blue:  "#3b82f6",

  darkRed:   "#991b1b",
  darkGreen: "#166534",
  darkBlue:  "#1e3a8a",
};

tailwindAlignAttributes

string[] · default: []

Extra JSX attribute names (beyond the built-in list) that the plugin should treat as Tailwind class strings.

Built-in list already includes: className, class, wrapperClass, containerClass, buttonClass, labelClass, inputClass, and 20+ more common names.

{ "tailwindAlignAttributes": ["myClass", "triggerClass", "overlayClass"] }
// Before
<Modal myClass="  flex   flex-col  gap-4  " />…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • tailwind
  • tailwindcss
  • align
  • vertical-align
  • object-properties
  • format

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

prettier-plugin-tailwind-align weekly downloads on npm, last 90 days: 7 weekly downloads as of Dec 5, 2026, -30.0% over 90 days.prettier-plugin-tailwind-alignWeekly downloads on npm · Last 90 days7downloads / week-30.0% over 90 days0246810Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-plugin-tailwind-align weekly downloads on npm, last 90 days: 7 weekly downloads as of Dec 5, 2026, -30.0% over 90 days.

7/30/90-day growth

prettier-plugin-tailwind-align weekly downloads growth on npm: -22.2% over 7 days, 0.0% over 30 days, -30.0% over 90 days.prettier-plugin-tailwind-alignWeekly downloads growth on npm7downloads / week now7-day growth-2 weekly downloads-22.2%30-day growth+0 weekly downloads0.0%90-day growth-3 weekly downloads-30.0%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-tailwind-align weekly downloads growth on npm: -22.2% over 7 days, 0.0% over 30 days, -30.0% over 90 days.

Ranking history

prettier-plugin-tailwind-align npm ranking history: currently #3189 (by weekly downloads).prettier-plugin-tailwind-alignnpm ranking · by weekly downloads · Last 90 days#3189current rank#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
prettier-plugin-tailwind-align npm ranking history: currently #3189 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 160, #11 (overall #3,191)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 13, #6 (overall #246)
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 prettier-plugin-tailwind-align
Date (UTC)Weekly downloadsChange vs. previous
7-1
8-1
9+4
50
5-2
70
7-2
90
9+1
80
8-1
9+2
7-1
8—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-tailwind-align 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/prettier-plugin-tailwind-align. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.