Skip to content
PluginStats

prettier-plugin-tailwind-variants weekly downloads statistics

By tianenpang · npm · Prettier plugins

A Prettier plugin for Tailwind Variants that formats class arrays while preserving structure, then sorts them with prettier-plugin-tailwindcss

View on npm Stale · Oct 17, 2026

prettier-plugin-tailwind-variants has 7 recorded weekly downloads on npm, a decrease of 66.7% over the past 30 days, ranking #1983 of 2,256 tracked listings.

Weekly downloads
7
Official API · Oct 17, 2026
7-day growth
-41.7%
-5 weekly downloads
30-day growth
-66.7%
-14 weekly downloads
90-day growth
—
Insufficient history
Rank
#1983
Among tracked npm listings

About prettier-plugin-tailwind-variants

prettier-plugin-tailwind-variants

A Prettier plugin for Tailwind Variants. Formats tv() class arrays while preserving structure, then sorts with prettier-plugin-tailwindcss.

Installation

Must be composed with prettier-plugin-tailwindcss as above.

Options

| Option | Default | Description |

| tvFunctions | ['tv'] | Callee names to format. Keep tailwindFunctions in sync for string sorting. | | tvUnwrapSingleClassArrays | true | Unwrap nested single-class arrays into the parent sort pool. Ignored when grouping or flattening. | | tvGroupByModifiers | false | Split tokens into one string per modifier group (base, hover, dark, …). | | tvModifierGroupOrder | built-in | Group id order when grouping is on. Ignored when grouping is off. | | tvFlattenToString | false | Flatten arrays / nests into a single class string. Ignored for final shape when grouping is on. | | tvRemoveEmptyClasses | true | Remove empty / whitespace-only class strings and empty arrays. | | tvGroupByBreakpoints | false | When grouping, put each breakpoint (sm, md, …) in its own group. Ignored when grouping is off. |

Shape priority: tvGroupByModifiers → else tvFlattenToString → else preserve structure (+ unwrap).

Formatting

Covers base, slots, variants, compoundVariants / compoundSlots (class / className). JS/TS and regions (Vue, Svelte, Astro, HTML, …); CSS is left alone. Framework parsers need their own Prettier plugins.

Editor IntelliSense

Prefer key-scoped classRegex over classFunctions: ["tv"] so conditions and defaultVariants are skipped. Copy from .vscode/settings.json and enable "editor.quickSuggestions": { "strings": "on" }.

Limitations

• Static strings and literal arrays only • Dynamic values skip that array • Peers: prettier@^3.0.0, prettier-plugin-tailwindcss@^0.8.0

Community

Contributing · Code of Conduct · Security · Support

License

MIT

Description from the npm listing.

  • prettier
  • prettier-plugin
  • tailwind
  • tailwindcss
  • tailwind-variants
  • formatting
  • class-sorting
  • variants

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-variants weekly downloads on npm, last 90 days: 7 weekly downloads as of Oct 17, 2026.prettier-plugin-tailwind-variantsWeekly downloads on npm · Last 90 days7downloads / week0100200300400500600Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
prettier-plugin-tailwind-variants weekly downloads on npm, last 90 days: 7 weekly downloads as of Oct 17, 2026.

7/30/90-day growth

prettier-plugin-tailwind-variants weekly downloads growth on npm: -41.7% over 7 days, -66.7% over 30 days, 90-day growth unavailable.prettier-plugin-tailwind-variantsWeekly downloads growth on npm7downloads / week now7-day growth-5 weekly downloads-41.7%30-day growth-14 weekly downloads-66.7%90-day growth+7 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-tailwind-variants weekly downloads growth on npm: -41.7% over 7 days, -66.7% over 30 days, 90-day growth unavailable.

Ranking history

prettier-plugin-tailwind-variants npm ranking history: currently #1983 (by weekly downloads).prettier-plugin-tailwind-variantsnpm ranking · by weekly downloads · Last 90 days#1983current rank#600#800#1000#1200#1400#1600#1800#2000Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-tailwind-variants npm ranking history: currently #1983 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 100, #4 (overall #1,984)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 6, #17 (overall #117)
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 (543)
Recent weekly downloads observations for prettier-plugin-tailwind-variants
Date (UTC)Weekly downloadsChange vs. previous
7-6
130
13-3
160
160
16+4
120
12+6
6-2
8+3
5-4
9-3
12+1
11—

Similar npm Prettier plugins plugins

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