Skip to content
PluginStats

transform-to-tailwindcss weekly downloads statistics

By Simon-He95 (2 listings) · npm · Webpack plugins

🎨 Revolutionary CSS-to-TailwindCSS migration tool with surgical precision. Transform legacy stylesheets to utility-first classes instantly across Vue, React, Svelte, and Astro projects.

View on npm Stale · Oct 17, 2026

transform-to-tailwindcss has 16 recorded weekly downloads on npm, a decrease of 75.8% over the past 30 days, ranking #1864 of 2,256 tracked listings.

Weekly downloads
16
Official API · Oct 17, 2026
7-day growth
-82.4%
-75 weekly downloads
30-day growth
-75.8%
-50 weekly downloads
90-day growth
-71.9%
-41 weekly downloads
Rank
#1864
Among tracked npm listings

About transform-to-tailwindcss

🎨 Transform to TailwindCSS

🚀 Effortlessly migrate legacy CSS to TailwindCSS

Automatically transform existing CSS styles into utility-first TailwindCSS classes

English | 简体中文

✨ Why Choose Transform to TailwindCSS?

🎯 Performance First - Reduce bundle size with TailwindCSS utility classes 🔄 Legacy Migration - Seamlessly upgrade old projects to modern TailwindCSS ⚡ Developer Experience - Maintain design system consistency 🛠️ Framework Agnostic - Support for Vue, React, Svelte, Astro and vanilla HTML 📝 Auto Safelist - 🆕 Automatically collect generated class names, never lose any 🔐 Circular Protection - 🆕 Smart protection to prevent infinite build loops 🚀 Build Optimized - 🆕 Smart skip, only regenerate when changes occur

Want to use UnoCSS? Try transformToUnocss!

🚀 Quick Start

Global Installation

🎯 CSS Preprocessor Dependencies

From v0.0.49+, install CSS preprocessors you use in your project:

Why? Using peerDependencies ensures compatibility with your project's preprocessor versions and avoids conflicts.

CLI Usage

🆕 Quick Example: Auto Safelist Generation

Transform your CSS and automatically generate a safelist for TailwindCSS in just 3 steps:

⚠️ For Tailwind CSS v3.x and below users: Run npm run build once before starting development to generate the initial safelist file.

🌈 Usage

Vite

Rollup

Webpack

Vue CLI

Esbuild

🔧 Configuration Options

| Option | Type | Default | Description |

| 🐛 debug | boolean | false | Enable detailed transformation logs | | 📐 isRem | boolean | false | Convert px units to rem | | 🎯 include | FilterPattern | - | Files to process | | 🚫 exclude | FilterPattern | - | Files to ignore | | 📝 collectClasses | boolean | false | New Auto-collect generated classes | | 📂 outputPath | string | './safelist-classes.js' | New Output path for collected classes | | ⚡ skipIfNoChanges | boolean | true | New Skip generation if no changes |

⚠️ Important Notes for Different Tailwind CSS Versions:

  • Tailwind CSS v4.x+: Works out of the box with dynamic class generation - Tailwind CSS v3.x and below: Requires initial build step 1. Configure plugin: collectClasses: true 2. Run build: npm run build (generates safelist file) 3. Start dev: npm run dev (uses generated safelist) 4. Repeat step 2 when adding new CSS transformations

🆕 Class Collection Feature

🎯 New Feature: Automatically collect all generated TailwindCSS class names for safelist configuration!

When using dynamic CSS transformations, TailwindCSS might not detect the generated classes during purging. The class collection feature solves this by automatically generating a safelist file containing all transformed classes.

⚠️ Important for Tailwind CSS v3.x and below users: You need to run a build once first to generate the safelist file, then start your dev server for normal behavior. This is because Tailwind CSS v3.x and below require the safelist to be available during the initial compilation process.

📝 Auto-Generate Safelist - Never Lose Classes Again

Generated file (safelist-classes.js):

Key Benefits:

• 🔄 Circular Dependency Protection: Smart detection prevents infinite build loops • ⚡ Performance Optimized: Only regenerates when classes actually change • 🛡️ Build-Safe: Multiple safeguards prevent duplicate generations • 📊 Comprehensive: Collects classes from all transformation processes

⚠️ Workflow for Tailwind CSS v3.x and below:

  1. Configure the plugin with collectClasses: true 2. Run npm run build (or your build command) once to generate safelist 3. Start your dev server with npm run dev 4. The generated classes will now be available during development

Other Configuration Options

debug

• Type: boolean • Default: false

Enable debug mode to output detailed debugging logs during the transformation process. This is useful for troubleshooting and understanding the style transformation process.

isRem

• Type: boolean • Default: false

Convert px units to rem units during the transformation process.

include/exclude

• Type: FilterPattern

Filter patterns for including or excluding files during the transformation process.

🎯 Supported Features

✅ File Formats - .html | .tsx | .vue | .astro | .svelte ✅ CSS Preprocessors - Sass, Less, Stylus ✅ Build Tools - Vite, Rollup, Webpack, Vue CLI, ESBuild ✅ IDE Support - VS Code Extension

🔗 Related Projects

• transform-to-tailwindcss-core - Browser-side CSS transformation engine

📈 Before & After Comparison

Before 😤

After 🎉

💖 Support the Project

If this project helps you, please consider giving it a ⭐!

📄 License

MIT © 2024-PRESENT Simon He

Description from the npm listing.

  • transform-to-tailwindcss
  • tailwindcss
  • css-transform
  • utility-first
  • css-migration
  • vue
  • react
  • svelte
  • astro
  • vite-plugin
  • webpack-plugin
  • rollup-plugin
  • esbuild-plugin
  • css-preprocessor
  • sass
  • less
  • stylus
  • performance
  • optimization
  • developer-tools

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

transform-to-tailwindcss weekly downloads on npm, last 90 days: 16 weekly downloads as of Oct 17, 2026, -71.9% over 90 days.transform-to-tailwindcssWeekly downloads on npm · Last 90 days16downloads / week-71.9% over 90 days050100150200Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
transform-to-tailwindcss weekly downloads on npm, last 90 days: 16 weekly downloads as of Oct 17, 2026, -71.9% over 90 days.

7/30/90-day growth

transform-to-tailwindcss weekly downloads growth on npm: -82.4% over 7 days, -75.8% over 30 days, -71.9% over 90 days.transform-to-tailwindcssWeekly downloads growth on npm16downloads / week now7-day growth-75 weekly downloads-82.4%30-day growth-50 weekly downloads-75.8%90-day growth-41 weekly downloads-71.9%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
transform-to-tailwindcss weekly downloads growth on npm: -82.4% over 7 days, -75.8% over 30 days, -71.9% over 90 days.

Ranking history

transform-to-tailwindcss npm ranking history: currently #1864 (by weekly downloads).transform-to-tailwindcssnpm ranking · by weekly downloads · Last 90 days#1864current rank#1856#1858#1860#1862#1864#1866Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
transform-to-tailwindcss npm ranking history: currently #1864 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,129 shown · page 94, #5 (overall #1,865)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins247 listings · 13 pages · page 9, #10 (overall #170)
Webpack 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 (121)
Recent weekly downloads observations for transform-to-tailwindcss
Date (UTC)Weekly downloadsChange vs. previous
16-13
29+4
25-4
29-1
300
30-59
89-2
91+12
79-2
81-19
1000
100-12
112+11
101—

Similar npm Webpack plugins plugins

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