Skip to content
PluginStats

@culur/prettier-plugin-tailwindcss-group weekly downloads statistics

By culur · npm · Prettier plugins

Prettier plugin to automatically format and wrap long className attributes

View on npm Fresh · Dec 6, 2026

@culur/prettier-plugin-tailwindcss-group has 15 recorded weekly downloads on npm, an increase of 275% over the past 30 days, ranking #3051 of 3,247 tracked listings.

Weekly downloads
15
Official API · Dec 5, 2026
7-day growth
-34.8%
-8 weekly downloads
30-day growth
+275%
+11 weekly downloads
90-day growth
+200%
+10 weekly downloads
Rank
#3051
▼ 281 in 7 days

About @culur/prettier-plugin-tailwindcss-group

@culur/prettier-plugin-tailwindcss-group

NPM Version NPM Download NPM License

CodeFactor Codecov Build and release

Prettier plugin to automatically group, format, and simplify Tailwind CSS class names across JSX attributes, object properties, and CVA variant definitions.

✨ Features

This plugin enforces a clean and consistent structure for Tailwind CSS classes. It provides:

  • Automatic Grouping: Automatically breaks down long class strings into logically grouped arguments by utility category (Layout, Typography, Visuals, etc.).
  • Multi-Target Support: Formats JSX attributes (className, wrapperClassName), object properties (className, wrapperclassName), and cva() parameters from class-variance-authority (commonly used in shadcn/ui).
  • Redundancy Simplification: Flattens unnecessary wrapper functions into pure strings if they are under the threshold.
  • Comment Preservation: Safely detects and preserves code comments (// and /* ... */) by bailing out on commented nodes to avoid Prettier "Comment was not printed" errors.
  • Idempotency & Compatibility: Strictly manipulates the Prettier AST. The output is fully compliant with standard Prettier formatting and integrates flawlessly with prettier-plugin-tailwindcss.

💿 Installation

Add @culur/prettier-plugin-tailwindcss-group and prettier-plugin-tailwindcss to your project. prettier-plugin-tailwindcss is a required peer dependency used to resolve official Tailwind CSS compiler sorting and variant hierarchies.

[!NOTE] No need to install tailwind-merge: The required tailwind-merge engine is already bundled directly inside @culur/prettier-plugin-tailwindcss-group. You do not need to install tailwind-merge as a separate dependency unless your application code directly imports utility functions like twMerge() or cn().

# Using npm
npm install @culur/prettier-plugin-tailwindcss-group prettier-plugin-tailwindcss --save-dev

# Using pnpm
pnpm install @culur/prettier-plugin-tailwindcss-group prettier-plugin-tailwindcss --save-dev

# Using yarn
yarn add @culur/prettier-plugin-tailwindcss-group prettier-plugin-tailwindcss --dev

# Using bun
bun add @culur/prettier-plugin-tailwindcss-group prettier-plugin-tailwindcss --dev

Note: You also need prettier (>=3.0.0) installed in your project.

📖 Usage & Integration

Add to your .prettierrc configuration:

{
  "plugins": [
    "@culur/prettier-plugin-tailwindcss-group",
    "prettier-plugin-tailwindcss"
  ],
  "classNameThreshold": 10,
  "modifierThreshold": 2,
  "tailwindFunctions": ["cn"]
}

Both plugins share the tailwindFunctions configuration option, so helper functions like cn() or clsx() are sorted and grouped seamlessly.

⚙️ Options

OptionTypeDefaultDescription
classNameThresholdint10Threshold of class names (split by whitespace) to trigger wrapping.
modifierThresholdint2Threshold of modifier/variant classes within a category before splitting into separate lines.
tailwindFunctionsstring[]["cn"]List of helper function names. The first element is used as default wrapper function. Note: tailwindFunctions is also an official option of prettier-plugin-tailwindcss.

📐 Formatting Rules & Concepts

This plugin inspects AST nodes to find valid styling targets and applies formatting rules.

🔠 Representation Modes

Depending on the target context and rule thresholds, class strings are represented in one of the following AST forms:

  • StringLiteral: A raw static string literal "class-1 class-2".

    // JSX Attribute
    <div className="flex items-center" />;
    
    // CVA Parameter
    const button = cva('flex items-center');
    
  • ExpressionStringLiteral: A JSX expression container wrapping a single string literal {"class-1 class-2"} (JSX Attributes only).

    <div className={'flex items-center'} />
    
  • ExpressionCall: A helper function call such as {cn('class-1 class-2')} (JSX Attributes) or cn('class-1 class-2') (Object Properties / CVA Parameters).

    // JSX Attribute Expression Call
    <div className={cn('flex items-center')} />;
    
    // Object Property Expression Call
    const config = { className: cn('flex items-center') };
    
  • ExpressionArrayString: An array literal containing string items ['class-1', 'class-2'] (used in CVA parameters).

    const button = cva([
      'flex items-center justify-center',
      'bg-white shadow-sm',
    ]);
    

---…

Description from the npm listing.

  • culur
  • prettier
  • prettier-plugin
  • classnames

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

@culur/prettier-plugin-tailwindcss-group weekly downloads on npm, last 90 days: 15 weekly downloads as of Dec 5, 2026, +200% over 90 days.@culur/prettier-plugin-tailwindcss-gro…Weekly downloads on npm · Last 90 days15downloads / week+200% over 90 days050100150200250Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@culur/prettier-plugin-tailwindcss-group weekly downloads on npm, last 90 days: 15 weekly downloads as of Dec 5, 2026, +200% over 90 days.

7/30/90-day growth

@culur/prettier-plugin-tailwindcss-group weekly downloads growth on npm: -34.8% over 7 days, +275% over 30 days, +200% over 90 days.@culur/prettier-plugin-tailwindcss-gro…Weekly downloads growth on npm15downloads / week now7-day growth-8 weekly downloads-34.8%30-day growth+11 weekly downloads+275%90-day growth+10 weekly downloads+200%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@culur/prettier-plugin-tailwindcss-group weekly downloads growth on npm: -34.8% over 7 days, +275% over 30 days, +200% over 90 days.

Ranking history

@culur/prettier-plugin-tailwindcss-group npm ranking history: currently #3051 (by weekly downloads).@culur/prettier-plugin-tailwindcss-gro…npm ranking · by weekly downloads · Last 90 days#3051current rank#1600#1800#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
@culur/prettier-plugin-tailwindcss-group npm ranking history: currently #3051 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 pages · page 10, #16 (overall #196)
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 @culur/prettier-plugin-tailwindcss-group
Date (UTC)Weekly downloadsChange vs. previous
15+3
12-2
14-3
17-4
21-3
240
24+1
23+4
19+4
15+3
12+3
9+2
70
7—

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/@culur/prettier-plugin-tailwindcss-group. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.