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 · Oct 17, 2026

prettier-plugin-tailwind-align has 0 recorded weekly downloads on npm, a decrease of 100% over the past 30 days.

It ranks #2232 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -100%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
0
Official API · Oct 17, 2026
7-day growth
—
Insufficient history
30-day growth
-100%
-7 weekly downloads
90-day growth
-100%
-2 weekly downloads
Rank
#2232
Among tracked npm listings

About prettier-plugin-tailwind-align

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.

Table of Contents

• Why this exists • Installation • Quick start • Options • What gets aligned • Full example • Migrating from two separate plugins • Local development • Compatibility • License

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

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

Quick start

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

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

Option Reference

| Option | Type | Default | Description |

| alignInGroups | "never" \| "always" | "never" | Alignment scope inside object blocks | | tailwindAlignAttributes | string[] | [] | Extra JSX attribute names to treat as class strings | | tailwindAlignFunctions | string[] | [] | Extra function names whose arguments are class strings | | tailwindAlignWidth | number | 0 | Column width before wrapping; 0 = inherit printWidth | | tailwindAlignGroups | boolean | false | Group classes by Tailwind category (reserved, future feature) | | tailwindAlignMinLength | number | 0 | Min class string length to trigger formatting; 0 = always | | tailwindAlignObjectValues | boolean | true | Vertically align values in object class maps |

alignInGroups

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

| Value | Default | Description |

| "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.

"always" — group-level alignment

A blank line starts a new independent alignment group.

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.

tailwindAlignFunctions

string[] · default: []

Extra function names (beyond the built-in list) whose string arguments are treated as Tailwind class strings.

Built-in list: cn, cx, clsx, classnames, classNames, twMerge, twJoin, cva.

tailwindAlignWidth

number · default: 0

Maximum column width before class strings are wrapped. 0 means inherit Prettier's own printWidth setting.

tailwindAlignGroups

boolean · default: false

When true, classes will be grouped by Tailwind category (layout, visual, state, …) before rendering. Reserved for a future feature — currently has no effect.

tailwindAlignMinLength

number · default: 0

Minimum character length of a class string before formatting is applied. Strings shorter than this value are left unchanged. 0 (default) means always format regardless of length.

Useful to leave short utility strings like "flex" or "hidden" alone:

tailwindAlignObjectValues

boolean · default: true

When true (the default), values in object class maps are vertically aligned. Set to false to disable alignment while keeping class-string formatting.

What gets aligned

| Node type | Aligned |

| Object literal properties — { key: value } | ✅ | | TypeScript interface members | ✅ | | TypeScript type literal members | ✅ | | Class property definitions | ✅ | | Shorthand properties — { x, y, z } | ❌ skipped | | Method shorthands — { foo() {} } | ❌ skipped | | Multi-line values (key and value on different lines) | ❌ skipped | | Multiple properties sharing the same line | ❌ skipped |

Full example

Input

Output — with alignInGroups: "always"

Migrating from two separate plugins

Before:

After:

Then uninstall the old plugins:

The alignInGroups option name is kept identical to @huggingface/prettier-plugin-vertical-align's option, so existing configs work without any value changes.

Local development

Compatibility

| | Version |

| prettier | ^3.0 | | prettier-plugin-tailwindcss | ^0.7 | | Node.js | >=18 |

License

MIT © Sudhir Gadpayle

Description from the npm listing.

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

Where prettier-plugin-tailwind-align sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 112, #13 (overall #2233)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins241 listings · 13 pages · page 12, #12 (overall #232)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

prettier-plugin-tailwind-align weekly downloads on npm, last 90 days: 0 weekly downloads as of Oct 17, 2026, -100% over 90 days.prettier-plugin-tailwind-alignWeekly downloads on npm · Last 90 days0downloads / week-100% over 90 days0246810Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
prettier-plugin-tailwind-align weekly downloads on npm, last 90 days: 0 weekly downloads as of Oct 17, 2026, -100% over 90 days.
PNG SVG

7/30/90-day growth

prettier-plugin-tailwind-align weekly downloads growth on npm: 7-day growth unavailable, -100% over 30 days, -100% over 90 days.prettier-plugin-tailwind-alignWeekly downloads growth on npm0downloads / week now7-day growth+0 weekly downloadsInsufficient history30-day growth-7 weekly downloads-100%90-day growth-2 weekly downloads-100%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-tailwind-align weekly downloads growth on npm: 7-day growth unavailable, -100% over 30 days, -100% over 90 days.
PNG SVG

Ranking history

prettier-plugin-tailwind-align npm ranking history: currently #2232 (by weekly downloads).prettier-plugin-tailwind-alignnpm ranking · by weekly downloads · Last 90 days#2232current rank#2230#2231#2232#2233#2234Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-tailwind-align npm ranking history: currently #2232 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (121)
Recent weekly downloads observations for prettier-plugin-tailwind-align
Date (UTC)Weekly downloadsChange vs. previous
00
00
00
00
00
00
00
00
0-1
10
10
1-1
2-1
3—

Similar npm Prettier plugins plugins

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 Oct 17, 2026. See the methodology.