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 Fresh · Dec 6, 2026

transform-to-tailwindcss has 141 recorded weekly downloads on npm, an increase of 386% over the past 30 days, ranking #2556 of 3,247 tracked listings.

Weekly downloads
141
Official API · Dec 5, 2026
7-day growth
+98.6%
+70 weekly downloads
30-day growth
+386%
+112 weekly downloads
90-day growth
+464%
+116 weekly downloads
Rank
#2556
▲ 2 in 7 days

About transform-to-tailwindcss

<div align="center">

🎨 Transform to TailwindCSS

<img height="200" src="./assets/kv.png" alt="to tailwindcss">

npm version Downloads License: MIT GitHub stars

🚀 Effortlessly migrate legacy CSS to TailwindCSS

Automatically transform existing CSS styles into utility-first TailwindCSS classes

English | 简体中文

</div>

✨ 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
npm install -g transform-to-tailwindcss
# or
yarn global add transform-to-tailwindcss
# or
pnpm add -g transform-to-tailwindcss
🎯 CSS Preprocessor Dependencies

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

# For Sass/SCSS support
npm install sass

# For Less support
npm install less less-plugin-module-resolver

# For Stylus support
npm install stylus

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

CLI Usage
# Transform a directory
totailwindcss playground

# Revert changes
totailwindcss playground --revert
🆕 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.

// 1. Configure your build tool
// vite.config.ts
export default defineConfig({
  plugins: [
    viteTransformToTailwindcss({
      collectClasses: true, // 🆕 Enable auto-collection
      outputPath: './safelist-classes.js',
    }),
  ],
})
// 2. Use in your TailwindCSS config
// tailwind.config.js
const { safelistClasses } = require('./safelist-classes.js')

module.exports = {
  safelist: [...safelistClasses], // 🎯 Never lose classes again!
  // ... rest of your config
}
<!-- 3. Write your components normally -->
<template>
  <div class="card">
    <h1 class="title">
      Hello World
    </h1>
  </div>
</template>

<style scoped>
.card {
  padding: 20px;
  background: #f3f4f6;
}
.title {
  font-size: 24px;
  color: #1f2937;
}
</style>

<!-- ✨ Auto-generated: ["p-5", "bg-gray-100", "text-2xl", "text-gray-800"] -->

🌈 Usage

<details> <summary>Vite</summary>
// vite.config.ts
import { vitePluginTransformTotailwindcss } from 'transform-to-tailwindcss'

export default defineConfig({
  plugins: [vitePluginTransformTotailwindcss(/* options */)],
})
</details> <br> <details> <summary>Rollup</summary>
// rollup.config.js
import { resolve } from 'node:path'
import { rollupTransformTotailwindcss } from 'transform-to-tailwindcss'

export default {
  plugins: [rollupTransformTotailwindcss(/* options */)],
}
</details> <br> <details> <summary>Webpack</summary>
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('transform-to-tailwindcss').webpackTransformTotailwindcss({
      /* options */
    }),
  ],
}
</details> <br> <details> <summary>Vue CLI</summary>
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('transform-to-tailwindcss').webpackTransformTotailwindcss({
        /* options */
      }),
    ],
  },
}
</details> <br> <details> <summary>Esbuild</summary>
// esbuild.config.js
import { build } from 'esbuild'
import { esbuildTransformTotailwindcss } from 'transform-to-tailwindcss'

build({
  plugins: [esbuildTransformTotailwindcss(/* options */)],
})
</details>

🔧 Configuration Options

<div align="center">
OptionTypeDefaultDescription
🐛 debugbooleanfalseEnable detailed transformation logs
📐 isRembooleanfalseConvert px units to rem
🎯 includeFilterPattern-Files to process
🚫 excludeFilterPattern-Files to ignore
📝 collectClassesbooleanfalseNew Auto-collect generated classes
📂 outputPathstring'./safelist-classes.js'New Output path for collected classes
⚡ skipIfNoChangesbooleantrueNew Skip generation if no changes
</div>…

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: 141 weekly downloads as of Dec 5, 2026, +464% over 90 days.transform-to-tailwindcssWeekly downloads on npm · Last 90 days141downloads / week+464% over 90 days020406080100120140160Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
transform-to-tailwindcss weekly downloads on npm, last 90 days: 141 weekly downloads as of Dec 5, 2026, +464% over 90 days.

7/30/90-day growth

transform-to-tailwindcss weekly downloads growth on npm: +98.6% over 7 days, +386% over 30 days, +464% over 90 days.transform-to-tailwindcssWeekly downloads growth on npm141downloads / week now7-day growth+70 weekly downloads+98.6%30-day growth+112 weekly downloads+386%90-day growth+116 weekly downloads+464%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
transform-to-tailwindcss weekly downloads growth on npm: +98.6% over 7 days, +386% over 30 days, +464% over 90 days.

Ranking history

transform-to-tailwindcss npm ranking history: currently #2556 (by weekly downloads).transform-to-tailwindcssnpm ranking · by weekly downloads · Last 90 days#2556current rank#1600#1800#2000#2200#2400#2600#2800#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
transform-to-tailwindcss npm ranking history: currently #2556 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 128, #16 (overall #2,556)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 8, #15 (overall #155)
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 (170)
Recent weekly downloads observations for transform-to-tailwindcss
Date (UTC)Weekly downloadsChange vs. previous
141+3
138-3
141+117
24-1
25+4
21+6
15-56
71-2
73+1
72-5
77+2
75-4
79-7
86—

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 Dec 6, 2026. See the methodology.