Skip to content
PluginStats

transform-to-unocss weekly downloads statistics

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

🚀 Effortlessly transform CSS, inline styles, and preprocessors (Sass/Less/Stylus) to UnoCSS with smart conflict resolution and debug support

View on npm Fresh · Dec 6, 2026

transform-to-unocss has 285 recorded weekly downloads on npm, an increase of 1088% over the past 30 days, ranking #2397 of 3,247 tracked listings.

Weekly downloads
285
Official API · Dec 5, 2026
7-day growth
+88.7%
+134 weekly downloads
30-day growth
+1088%
+261 weekly downloads
90-day growth
+1681%
+269 weekly downloads
Rank
#2397
▲ 41 in 7 days

About transform-to-unocss

<p align="center"> <img height="200" src="./assets/kv.png" alt="Transform to UnoCSS"> </p> <h1 align="center">🚀 Transform to UnoCSS</h1> <p align="center"> <strong>Effortlessly migrate your CSS, inline styles, and preprocessors to UnoCSS</strong> </p> <p align="center"> <a href="https://www.npmjs.com/package/transform-to-unocss"><img src="https://img.shields.io/npm/v/transform-to-unocss?color=c95f8b&amp;label=" alt="NPM version"></a> <a href="https://www.npmjs.com/package/transform-to-unocss"><img src="https://img.shields.io/npm/dm/transform-to-unocss?color=727cf5" alt="NPM Downloads"></a> <a href="https://github.com/Simon-He95/transform-to-unocss"><img src="https://img.shields.io/github/stars/Simon-He95/transform-to-unocss?color=yellow" alt="GitHub stars"></a> <a href="./LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License"></a> </p> <p align="center"> English | <a href="./README_zh.md">简体中文</a></p>

✨ Why Transform to UnoCSS?

Transform your legacy CSS into modern, performant UnoCSS with zero configuration! This powerful tool automatically converts:

  • 🎨 CSS classes → UnoCSS utilities
  • 🖌️ Inline styles → Atomic classes
  • 🎭 Sass/Less/Stylus → Pure UnoCSS
  • ⚡ Bundle size reduction up to 70%
  • 🔧 Smart conflict resolution
  • 🐛 Debug mode for transparency
  • 🎯 One-click rollback for safety

Perfect for modernizing legacy projects or optimizing performance. Works with Vue, React, Svelte, Astro, and more!

💡 Pro tip: If you're using Tailwind CSS, check out our sister project transformToTailwindcss.

📦 Quick Start

Global Installation
npm i -g transform-to-unocss
One-time Usage (Recommended)
npx transform-to-unocss@latest your-project-folder

⚡ CLI Usage

Transform your project
# Transform entire directory
tounocss playground

# Transform with debug output
tounocss playground --debug

# Revert changes (if needed)
tounocss playground --revert

# Show help
tounocss --help
🎯 Quick Example

Before:

<template>
  <div class="container">
    <h1 class="title">Hello World</h1>
    <p style="color: red; font-size: 16px;">This is a paragraph</p>
  </div>
</template>

<style scoped>
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(to right, #ff6b6b, #4ecdc4);
}
.title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: center;
}
</style>

After:

<template>
  <div class="max-w-6xl mx-auto p-5 bg-gradient-to-r from-red-400 to-teal-400">
    <h1 class="text-6 font-bold text-gray-8 text-center">Hello World</h1>
    <p class="text-red text-4">This is a paragraph</p>
  </div>
</template>

✨ 70% smaller bundle size and zero runtime overhead!

🔧 Build Tool Integration

<details> <summary><strong>🔥 Vite (Recommended)</strong></summary>
import { viteTransformToUnocss } from 'transform-to-unocss'
// vite.config.ts
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    viteTransformToUnocss({
      include: ['**/*.vue', '**/*.tsx', '**/*.jsx'],
      exclude: ['node_modules/**'],
      debug: true, // Enable debug mode
    }),
  ],
})
</details> <details> <summary><strong>📦 Rollup</strong></summary>
// rollup.config.js
import { rollupTransformToUnocss } from 'transform-to-unocss'

export default {
  plugins: [
    rollupTransformToUnocss({
      include: ['**/*.vue', '**/*.tsx', '**/*.jsx'],
      debug: false,
    }),
  ],
}
</details> <details> <summary><strong>⚡ Webpack</strong></summary>
// webpack.config.js
const { webpackTransformToUnocss } = require('transform-to-unocss')

module.exports = {
  plugins: [
    webpackTransformToUnocss({
      include: ['**/*.vue', '**/*.tsx', '**/*.jsx'],
      exclude: ['node_modules/**'],
    }),
  ],
}
</details> <details> <summary><strong>🎯 Vue CLI</strong></summary>
// vue.config.js
const { webpackTransformToUnocss } = require('transform-to-unocss')

module.exports = {
  configureWebpack: {
    plugins: [
      webpackTransformToUnocss({
        include: ['**/*.vue'],
        debug: process.env.NODE_ENV === 'development',
      }),
    ],
  },
}
</details> <details> <summary><strong>⚡ Esbuild</strong></summary>
// esbuild.config.js
import { build } from 'esbuild'
import { esbuildTransformToUnocss } from 'transform-to-unocss'

build({
  plugins: [
    esbuildTransformToUnocss({
      include: ['**/*.tsx', '**/*.jsx'],
    }),
  ],
})
</details>

� Core Features

🎯 Smart Transformation
  • ✅ CSS class selectors → UnoCSS utilities
  • ✅ Inline styles → Atomic class attributes
  • ✅ Preprocessors (Sass/Less/Stylus) → Pure UnoCSS
  • ✅ Pseudo-classes (:hover, :focus, etc.)
  • ✅ Media queries → Responsive classes
  • ✅ Complex selectors → Smart parsing
🔧 Developer Experience
  • 🐛 Debug mode - Detailed transformation logs
  • � One-click rollback - Safe change reversal
  • 🎨 VS Code extension - To UnoCSS
  • 📝 TypeScript support - Full type definitions
  • 🚀 Zero configuration - Works out of the box
🏗️ Framework Support
  • ⚡ Vue 3/2 - Full support
  • ⚛️ React - JSX/TSX support
  • 🎭 Svelte - Native support
  • 🚀 Astro - Component support
  • 📄 HTML - Pure HTML files

🎨 Advanced Usage

Programmatic API
import { transfromCode } from 'transform-to-unocss'

// Transform Vue component
const result = await transfromCode(vueCode, {
  type: 'vue',
  isRem: true,
  debug: true,
})

// Transform React component
const result = await transfromCode(reactCode, {
  type: 'tsx',
  isJsx: true,
  debug: false,
})
Configuration Options…

Description from the npm listing.

  • transform-to-unocss
  • unocss
  • css-migration
  • css-to-unocss
  • tailwindcss
  • atomic-css
  • css-transform
  • build-tool
  • vite-plugin
  • webpack-plugin
  • rollup-plugin
  • vue
  • react
  • svelte
  • astro
  • sass
  • less
  • stylus
  • performance-optimization
  • cli-tool

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-unocss weekly downloads on npm, last 90 days: 285 weekly downloads as of Dec 5, 2026, +1681% over 90 days.transform-to-unocssWeekly downloads on npm · Last 90 days285downloads / week+1681% over 90 days050100150200250300Sep 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-unocss weekly downloads on npm, last 90 days: 285 weekly downloads as of Dec 5, 2026, +1681% over 90 days.

7/30/90-day growth

transform-to-unocss weekly downloads growth on npm: +88.7% over 7 days, +1088% over 30 days, +1681% over 90 days.transform-to-unocssWeekly downloads growth on npm285downloads / week now7-day growth+134 weekly downloads+88.7%30-day growth+261 weekly downloads+1088%90-day growth+269 weekly downloads+1681%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
transform-to-unocss weekly downloads growth on npm: +88.7% over 7 days, +1088% over 30 days, +1681% over 90 days.

Ranking history

transform-to-unocss npm ranking history: currently #2397 (by weekly downloads).transform-to-unocssnpm ranking · by weekly downloads · Last 90 days#2397current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 34 observations · Updated Dec 5, 2026pluginstats.com
transform-to-unocss npm ranking history: currently #2397 (by weekly downloads).

Listing placement

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

Listing placement

Webpack plugins349 listings · 18 pages · page 7, #4 (overall #124)
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 (592)
Recent weekly downloads observations for transform-to-unocss
Date (UTC)Weekly downloadsChange vs. previous
285+4
281-10
291+251
40+1
39+13
260
26-125
151+1
150+10
140+1
139+2
137-2
139+3
136—

Similar npm Webpack plugins plugins

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