Skip to content
PluginStats

strict-tailwind-order weekly downloads statistics

By DavidErenfeld · npm · Prettier plugins

Prettier plugin for strict functional Tailwind CSS class ordering and family-safe line wrapping

View on npm Stale · Oct 17, 2026

strict-tailwind-order has 42 recorded weekly downloads on npm, a decrease of 32.3% over the past 30 days, ranking #1753 of 2,308 tracked listings.

Weekly downloads
42
Official API · Oct 18, 2026
7-day growth
-41.7%
-30 weekly downloads
30-day growth
-32.3%
-20 weekly downloads
90-day growth
-19.2%
-10 weekly downloads
Rank
#1753
Among tracked npm listings

About strict-tailwind-order

strict-tailwind-order

A Prettier 3 plugin and CLI that runs the official prettier-plugin-tailwindcss first, then applies strict functional class ordering and family-safe class-line wrapping as the final stage.

The package does not fork, vendor, copy, or reimplement the official plugin.

Requirements

  • Node.js >=20.19
  • Prettier >=3.7.0 <4.0.0
  • prettier-plugin-tailwindcss >=0.8.0 <0.9.0

Install

npm install -D prettier@^3.7.0 prettier-plugin-tailwindcss@0.8.0 strict-tailwind-order

With pnpm:

pnpm add -D prettier@^3.7.0 prettier-plugin-tailwindcss@0.8.0 strict-tailwind-order

Configure

Use one regular Prettier configuration:

const config = {
  semi: true,
  singleQuote: true,
  printWidth: 120,
  plugins: ['prettier-plugin-tailwindcss', 'strict-tailwind-order'],
};

export default config;

Run the strict-tailwind-order CLI rather than raw prettier when both sorters are configured. The CLI creates two isolated configurations internally:

source
→ Prettier + prettier-plugin-tailwindcss
→ Prettier + strict-tailwind-order
→ final output

Other parser and language plugins remain available in both stages. The official plugin is removed from the strict stage and cannot run again after strict sorting or wrapping.

CLI

npx strict-tailwind-order --write .
npx strict-tailwind-order --check .
npx strict-tailwind-order --write src
npx strict-tailwind-order --check src/App.vue
npx strict-tailwind-order --check "src/**/*.{js,ts,jsx,tsx,vue,html,css}"

--write performs both stages in memory and writes only the final output after both stages succeed. --check uses the same pipeline without modifying files.

The CLI uses the consumer project's Prettier configuration, overrides, .prettierignore, parser inference, installed Prettier, and installed official plugin.

Explicit Prettier config

When the Prettier config is outside a standard discovery location, pass it explicitly:

strict-tailwind-order --write . --config config/prettier.config.mjs
strict-tailwind-order --check pages/01/src/App.vue --config config/prettier.config.mjs

The option may appear before or after the inputs:

strict-tailwind-order --config config/prettier.config.mjs --write .
strict-tailwind-order --write . --config config/prettier.config.mjs

--config-path is an alias for --config. Relative paths are resolved from the current working directory; absolute paths are supported. The same resolved config is used by both stages, including filepath-based overrides, additional plugins, Tailwind options, and environment-dependent logic such as process.env.PAGE.

The CLI does not silently treat config/prettier.config.mjs as a special global fallback. Use --config when the file is not discoverable by Prettier. This avoids ambiguous or surprising config selection in generic projects.

Package scripts

Config in a standard location:

{
  "scripts": {
    "format": "strict-tailwind-order --write .",
    "format:check": "strict-tailwind-order --check ."
  }
}

Config in config/prettier.config.mjs:

{
  "scripts": {
    "format": "strict-tailwind-order --write . --config config/prettier.config.mjs",
    "format:check": "strict-tailwind-order --check . --config config/prettier.config.mjs"
  }
}

For multi-page projects, keep the existing command that sets PAGE and replace only the raw prettier executable with strict-tailwind-order, adding --config config/prettier.config.mjs.

CI

- run: npm ci
- run: npm run format:check

Pre-commit

Pass the staged file paths to the local CLI. Do not run the official plugin in a separate command after it.

npx strict-tailwind-order --write src/App.vue src/components/Card.tsx

Official plugin options

The official stage receives the project's official options unchanged, including supported stylesheet, config, attribute, function, duplicate, and whitespace options.

The strict stage maps these options when an equivalent exists:

Official optionStrict option
tailwindStylesheet or tailwindEntryPointstrictTailwindStylesheet
tailwindAttributesstrictTailwindAttributes
tailwindFunctionsstrictTailwindFunctions
tailwindPreserveWhitespacestrictTailwindPreserveWhitespace

tailwindConfig, tailwindPackageName, and tailwindPreserveDuplicates remain official-stage options. The strict stage removes them rather than passing unknown options to Prettier.

Strict options

const config = {
  plugins: ['prettier-plugin-tailwindcss', 'strict-tailwind-order'],
  strictTailwindMaxClassLineLength: 100,
  strictTailwindStylesheet: 'src/main.css',
  strictTailwindAttributes: ['button-class'],
  strictTailwindFunctions: ['cx'],
  strictTailwindPreserveWhitespace: false,
};

export default config;

strictTailwindStylesheet is optional because stylesheet discovery remains enabled by default. Set strictTailwindMaxClassLineLength to 0 to disable class-content wrapping.

Vue regular HTML self-closing compatibility

The combined CLI protects regular lowercase HTML elements that are written as self-closing Vue template elements before the official stage, restores them before the strict stage, and preserves their final structure:

<p class="mb-4 px-2 md:mb-8 md:px-4" />

The compatibility layer does not convert the element to <p></p> or to a fragment. It does not rewrite Vue components, void elements, already-closed regular elements, comments, script strings, style content, directives, or class bindings. Class values remain available to the official stage and are then sorted and wrapped by strict as the final operation.…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • tailwindcss
  • vue
  • typescript
  • jsx
  • formatting

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

strict-tailwind-order weekly downloads on npm, last 90 days: 59 weekly downloads as of Oct 18, 2026, +59.5% over 90 days.strict-tailwind-orderWeekly downloads on npm · Last 90 days59downloads / week+59.5% over 90 days050100150200250Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
strict-tailwind-order weekly downloads on npm, last 90 days: 59 weekly downloads as of Oct 18, 2026, +59.5% over 90 days.

7/30/90-day growth

strict-tailwind-order weekly downloads growth on npm: -11.9% over 7 days, +3.5% over 30 days, +59.5% over 90 days.strict-tailwind-orderWeekly downloads growth on npm59downloads / week now7-day growth-8 weekly downloads-11.9%30-day growth+2 weekly downloads+3.5%90-day growth+22 weekly downloads+59.5%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
strict-tailwind-order weekly downloads growth on npm: -11.9% over 7 days, +3.5% over 30 days, +59.5% over 90 days.

Ranking history

strict-tailwind-order npm ranking history: currently #1753 (by weekly downloads).strict-tailwind-ordernpm ranking · by weekly downloads · Last 90 days#1753current rank#1746#1748#1750#1752#1754#1756Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
strict-tailwind-order npm ranking history: currently #1753 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins244 listings · 13 pages · page 4, #11 (overall #71)
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 (122)
Recent weekly downloads observations for strict-tailwind-order
Date (UTC)Weekly downloadsChange vs. previous
59+17
42-1
430
43-32
75-12
870
87+20
67-5
72+1
71-1
72+32
40+12
28-1
29—

Similar npm Prettier plugins plugins

All 20 strict-tailwind-order 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/strict-tailwind-order. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.