Skip to content
PluginStats

prettier-plugin-latte-tailwindcss weekly downloads statistics

By zipper · npm · Prettier plugins

Prettier plugin for sorting Tailwind CSS v4 classes in Latte v3 templates

View on npm Fresh · Oct 17, 2026

prettier-plugin-latte-tailwindcss has 3 recorded weekly downloads on npm, a decrease of 85.0% over the past 30 days.

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

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

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

Weekly downloads
3
Official API · Oct 17, 2026
7-day growth
-62.5%
-5 weekly downloads
30-day growth
-85.0%
-17 weekly downloads
90-day growth
-25.0%
-1 weekly downloads
Rank
#2091
Among tracked npm listings

About prettier-plugin-latte-tailwindcss

prettier-plugin-latte-tailwindcss

A Prettier plugin that sorts Tailwind CSS v4 classes in Latte v3 templates.

The official prettier-plugin-tailwindcss does not support Latte. This plugin fills that gap — it handles class, n:class, class={[...]}, and custom locations via classRegex.

Installation

Peer dependencies: prettier >= 3.0.0 and @tailwindcss/node >= 4.0.0.

Minimal .prettierrc:

If you omit tailwindStylesheet, the plugin uses a default @import "tailwindcss" which gives standard Tailwind class order. Set it when you have custom utilities or theme customizations.

What gets sorted

Standard HTML attributes

class and n:class attributes are always sorted automatically.

Latte array class syntax

Custom locations via classRegex

Class strings inside {embed} / {include} parameters, class => in custom tags, $class variables, and more:

The plugin auto-detects classRegex patterns from your IDE configuration (.vscode/settings.json or .idea/tailwindcss.xml). See Class Regex documentation for setup and recommended patterns.

Options

| Option | Type | Default | Description |

| tailwindStylesheet | string | — | Path to CSS entry point with @import "tailwindcss" | | tailwindClassRegex | string | "" | JSON array of classRegex patterns; empty = auto-detect from IDE | | tailwindAttributes | string[] | [] | Additional HTML attributes to sort as class lists | | tailwindNclassWhitespace | string | "normalize-barriers" | How n:class whitespace is handled: preserve, normalize-barriers, normalize | | tailwindPreserveWhitespace | boolean | false | Preserve whitespace in class attributes | | tailwindPreserveDuplicates | boolean | false | Keep duplicate classes | | tailwindPropertyOrder | string | "" | Path to stylelint-order compatible config for custom CSS property ordering | | tailwindClassOrder | string | "" | Bucket-based class ordering (unknown / tailwind / regex patterns). Path to JS/JSON file, or JSON-encoded string starting with `` |

See [Options documentation for detailed descriptions and examples.

n:class sorting model

The plugin uses a barrier model for n:class sorting:

• Sortable tokens: bare identifiers (active), single-class strings ('flex') • Barrier tokens: conditionals ($x ? 'active'), variables ($class), multi-class strings ('btn font-bold')

Sortable tokens between barriers are reordered by Tailwind order. Barrier tokens never move. Classes *within* any quoted string or conditional branch are always sorted internally.

Editor setup

PhpStorm / WebStorm

1. Settings → Languages & Frameworks → JavaScript → Prettier 2. Set Run for files to: {**/*.{js,ts,jsx,tsx,css,scss,html,json,latte}} 3. Optionally enable On save

VS Code

1. Install the Prettier extension 2. Add to settings.json:

Known limitations

• Range formatting may have off-by-one behavior due to the Latte preprocessing step. • Cross-barrier ordering is intentionally not supported in n:class.

Support

If this plugin saves you time, consider supporting its development:

• GitHub Sponsors • PayPal

License

MIT

Description from the npm listing.

  • prettier
  • prettier-plugin
  • tailwindcss
  • latte
  • nette

Where prettier-plugin-latte-tailwindcss 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 105, #12 (overall #2092)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins241 listings · 13 pages · page 8, #13 (overall #153)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

prettier-plugin-latte-tailwindcss weekly downloads on npm, last 90 days: 3 weekly downloads as of Oct 17, 2026, -25.0% over 90 days.prettier-plugin-latte-tailwindcssWeekly downloads on npm · Last 90 days3downloads / week-25.0% over 90 days01020304050Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-latte-tailwindcss weekly downloads on npm, last 90 days: 3 weekly downloads as of Oct 17, 2026, -25.0% over 90 days.
PNG SVG

7/30/90-day growth

prettier-plugin-latte-tailwindcss weekly downloads growth on npm: -62.5% over 7 days, -85.0% over 30 days, -25.0% over 90 days.prettier-plugin-latte-tailwindcssWeekly downloads growth on npm3downloads / week now7-day growth-5 weekly downloads-62.5%30-day growth-17 weekly downloads-85.0%90-day growth-1 weekly downloads-25.0%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-latte-tailwindcss weekly downloads growth on npm: -62.5% over 7 days, -85.0% over 30 days, -25.0% over 90 days.
PNG SVG

Ranking history

prettier-plugin-latte-tailwindcss npm ranking history: currently #2091 (by weekly downloads).prettier-plugin-latte-tailwindcssnpm ranking · by weekly downloads · Last 90 days#2091current rank#2089#2090#2091#2092#2093Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-latte-tailwindcss npm ranking history: currently #2091 (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-latte-tailwindcss
Date (UTC)Weekly downloadsChange vs. previous
30
3-2
5-1
60
60
6+2
4-4
8-2
100
10-8
18-5
23-5
280
28—

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-latte-tailwindcss. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.