Skip to content
PluginStats

tailwindcss-obfuscator weekly downloads statistics

By josedacosta · npm · Webpack plugins

Tailwind CSS class mangler & obfuscator — rename utility classes (bg-blue-500 → tw-a) at build time. Vite, Webpack, Rollup, esbuild, Next.js, Nuxt, SvelteKit, Astro, Solid, Qwik, React Router 7, TanStack Router. Tailwind v3 + v4. Cuts CSS bundle 30–60% an

View on npm Fresh · Oct 17, 2026

tailwindcss-obfuscator has 100 recorded weekly downloads on npm, a decrease of 13.8% over the past 30 days.

It ranks #1674 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +53.8%.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
100
Official API · Oct 17, 2026
7-day growth
-59.5%
-147 weekly downloads
30-day growth
-13.8%
-16 weekly downloads
90-day growth
+53.8%
+35 weekly downloads
Rank
#1674
Among tracked npm listings

About tailwindcss-obfuscator

tailwindcss-obfuscator

Obfuscate, mangle and shrink Tailwind CSS class names at build time. Cuts your CSS bundle by 30–60% and protects your design system from copy-paste reverse-engineering. Vite · Webpack · Rollup · esbuild · Rspack · Farm · Next.js · Nuxt · SvelteKit · Astro · Solid · Qwik · React Router 7 · TanStack Router. Tailwind v3 & v4.

📖 Full documentation

### 👉 josedacosta.github.io/tailwindcss-obfuscator

Setup guides for every framework, the complete options reference, the patterns that obfuscate (and the ones that don't), the comparison with tailwindcss-mangle, and more.

Why

tailwindcss-obfuscator rewrites verbose Tailwind utility classes (bg-blue-500, flex) into short opaque identifiers (tw-a, tw-b) at build time. The shipped HTML / CSS / JS bundles get 30–60 % smaller on CSS-heavy pages and your design system becomes much harder to reverse-engineer. Source code stays readable.

Install

You also need tailwindcss (v3 or v4) installed in the project.

Quick start — Vite

That's it. Run vite build and your bundle is obfuscated. vite dev is left untouched so the dev experience stays normal.

For Webpack / Rollup / esbuild / Next.js / Nuxt / SvelteKit / Astro / Solid / Qwik / React Router 7 / TanStack Router setups, see the full documentation.

Plugin entry points

| Bundler / framework | Import path |

| Vite | tailwindcss-obfuscator/vite | | Webpack | tailwindcss-obfuscator/webpack | | Rollup | tailwindcss-obfuscator/rollup | | esbuild | tailwindcss-obfuscator/esbuild | | Nuxt module | tailwindcss-obfuscator/nuxt | | CLI binary | tw-obfuscator (after install) | | Internal pipeline | tailwindcss-obfuscator/internals |

Compatibility

The "Versions" column lists the design-intent range — the plugin core is bundler-agnostic and most modern versions of each tool work. The "Tested in CI" column lists the exact version exercised by an apps/test-* app on every release. If you need a guarantee for a specific version, open an issue and we'll add a test app.

| Dependency | Versions | Tested in CI |

| Tailwind CSS | v3.x · v4.x | v3.4 + v4.1 | | Vite | v4 → v8 | v8.x | | Webpack | v5 | v5.106 (standalone) + v5 in Next | | Rollup | v3 → v4 | v4.60 | | esbuild | ≥ 0.17 | ≥ 0.28 | | Next.js | v13 → v16 | v16.2 (App Router + Turbopack) | | Nuxt | v3 · v4 | v4.4 | | SvelteKit | v2 | v2.58 (Svelte 5.55, runes) | | Svelte | v4 · v5 | v5.55 (runes) | | Astro | v4 → v6 | v6.1 | | Vue | v3.5+ | v3.5.14 | | Solid | v1.9+ | v1.9.12 | | Qwik | v1.x | v1.19 | | React Router | v7 (ex-Remix) | v7.14 | | TanStack Start | v1.168+ | v1.168 | | Node.js | ≥ 18 | 20 (CI) + 22 (CI) |

Full live matrix with the test app file paths : docs/reference/compatibility.

FAQ

What is a Tailwind CSS obfuscator (a.k.a. Tailwind class mangler)?

A build-time tool that rewrites verbose Tailwind classes (bg-blue-500, flex, items-center) into short opaque identifiers (tw-a, tw-b, tw-c) inside the shipped HTML / CSS / JS bundle. Source code stays readable; only production output is changed. Net effect: 30–60% smaller CSS and a much harder-to-reverse-engineer design system, with zero runtime cost.

How is it different from tailwindcss-mangle?

tailwindcss-mangle was built primarily to mangle classes for tree-shaking. tailwindcss-obfuscator is built around obfuscation as the primary goal: a unified unplugin core (Vite/Webpack/Rollup/esbuild/Rspack/Farm), AST extraction with full cn() / clsx() / cva() / tv() support, native Svelte class: directives, source maps, a standalone CLI (tw-obfuscator) and explicit Tailwind v4 support.

The other contenders in the same space — Obfustail (UI Layouts), cssnano, and csso — are compared cell-by-cell in docs/research/comparison.

Does it work with Tailwind CSS v4?

Yes — full v4 support, including @import "tailwindcss", @theme, container queries, @starting-style, the *: / **: wildcards, and the new bg-(--my-var) shorthand. v3 (config file, JIT, safelist) is also fully supported.

Does it work with Next.js / Nuxt / SvelteKit / Astro / Solid / Qwik / Remix?

Yes — every major meta-framework has a dedicated test app and a documented setup recipe. Use the matching plugin entry from the table above, or read the framework guides.

Will it break my dev server?

No — obfuscation only runs on production builds (vite build / next build / webpack --mode=production). Dev servers stay untouched.

Is the transformation reversible?

Yes — every build emits .tw-obfuscation/class-mapping.json, a deterministic mapping you can keep around to translate any tw-xxx back to its original class.

Does it support shadcn/ui, CVA, Tailwind Variants?

Yes — cn(), clsx(), classnames(), twMerge(), cva() and tv() are recognised natively, including string literals nested inside variants, compoundVariants and defaultVariants.

What's the licence?

MIT — free for personal, commercial, and closed-source use.

Keywords

Search terms this project answers

tailwindcss obfuscator · tailwind css obfuscator · tailwind mangle · tailwindcss-mangle alternative · obfuscate tailwind classes · tailwind class shortener · shrink tailwind css bundle · tailwind v4 obfuscator · tailwind v3 obfuscator · tailwind vite plugin obfuscate · tailwind webpack plugin obfuscate · tailwind rollup plugin obfuscate · tailwind esbuild plugin obfuscate · tailwind rspack plugin · tailwind farm plugin · next.js tailwind obfuscator · nuxt tailwindcss obfuscator · sveltekit tailwind obfuscator · astro tailwind obfuscator · solid.js tailwind obfuscator · qwik tailwind obfuscator · react router tailwind obfuscator · tanstack router tailwind obfuscator · remix tailwind obfuscator · shadcn ui obfuscate · cva obfuscate · protect tailwind design system · hide tailwind classes · tailwind reverse engineering protection

Author

Built and maintained by José DA COSTA.

• 🌐 Website — • 🐙 GitHub — @josedacosta • ✉️ Email —

Sponsor on GitHub Sponsors if this saves you bandwidth or protects your design system.

License

MIT © José DA COSTA.

Description from the npm listing.

  • tailwindcss
  • tailwind
  • tailwind-css
  • obfuscator
  • obfuscation
  • mangle
  • mangler
  • tailwindcss-mangle
  • tailwindcss-mangler
  • tailwind-mangle
  • tailwind-mangler
  • tailwindcss-mangle-alternative
  • class-mangler
  • class-name-mangler
  • css-class-mangler
  • tailwind-class-mangler
  • tailwind-class-shortener
  • tailwind-css-mangler
  • minify
  • css

Charts

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

Adoption over time

tailwindcss-obfuscator weekly downloads on npm, last 90 days: 100 weekly downloads as of Oct 17, 2026, +53.8% over 90 days.tailwindcss-obfuscatorWeekly downloads on npm · Last 90 days100downloads / week+53.8% over 90 days050100150200250Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
tailwindcss-obfuscator weekly downloads on npm, last 90 days: 100 weekly downloads as of Oct 17, 2026, +53.8% over 90 days.
PNG SVG

7/30/90-day growth

tailwindcss-obfuscator weekly downloads growth on npm: -59.5% over 7 days, -13.8% over 30 days, +53.8% over 90 days.tailwindcss-obfuscatorWeekly downloads growth on npm100downloads / week now7-day growth-147 weekly downloads-59.5%30-day growth-16 weekly downloads-13.8%90-day growth+35 weekly downloads+53.8%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
tailwindcss-obfuscator weekly downloads growth on npm: -59.5% over 7 days, -13.8% over 30 days, +53.8% over 90 days.
PNG SVG

Ranking history

tailwindcss-obfuscator npm ranking history: currently #1674 (by weekly downloads).tailwindcss-obfuscatornpm ranking · by weekly downloads · Last 90 days#1674current rank#600#800#1000#1200#1400#1600#1800Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
tailwindcss-obfuscator npm ranking history: currently #1674 (by weekly downloads).
PNG SVG

Listing placement

All npm2,256 listings · 113 pages · 1,129 shown · page 84, #15 (overall #1,675)
All npm: every listing in weekly downloads order
PNG SVG

Listing placement

Webpack plugins247 listings · 13 pages · page 6, #5 (overall #105)
Webpack plugins: every listing in weekly downloads order
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.

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.

Recent observations

Full history (543)
Recent weekly downloads observations for tailwindcss-obfuscator
Date (UTC)Weekly downloadsChange vs. previous
100-21
121+20
101-58
159-58
2170
217-30
2470
247+12
235-12
247+26
221+34
187-43
230+28
202—

Similar npm Webpack plugins plugins

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