
weapp-tailwindcss
weapp-tailwindcss - bring tailwindcss to weapp ! 把 tailwindcss 原子化思想带入小程序开发吧 !
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Jun 2026
weapp-tailwindcss makes Tailwind CSS work inside WeChat mini-programs, which normally choke on Tailwind's class names because their CSS engines reject the special characters and selectors Tailwind generates. The plugin rewrites those class names into something mini-programs accept, converts values into rpx (the unit mini-programs use for sizing), and lets the same styling code ship to WeChat, Alipay, and Douyin mini-programs plus regular web. MIT-licensed, free, on npm.
There's no service to run. It's a build-step plugin that hooks into Vite, Webpack 5, or Rspack and works with the uni-app, Taro, and Mpx frameworks. It supports Tailwind v3 and v4 and ships a stack of companion packages for class merging, variants, and mini-program UI components, so it's more an ecosystem than a single shim.
Solo: if you're building a mini-program and want Tailwind, this is the standard way to do it. Small teams: same, it removes a whole category of styling friction. Large teams shipping cross-platform mini-programs: this is close to mandatory if you've standardized on Tailwind.
The catch: the audience is narrow. Outside the Chinese mini-program ecosystem this solves a problem you'll never have, and the documentation leans Chinese-first, so non-Chinese-reading teams will spend extra time in translation. If you're not shipping to WeChat or its cousins, skip it.
Free vs Self-Hosted vs Paid
fully freeFree
All of it. MIT-licensed, published to npm. The core plugin plus 15+ companion packages covering PostCSS processing, runtime class merging, variants, typography, and mini-program UI components.
Self-hosted
Not applicable. It's a build-tool plugin you add to Vite, Webpack, or Rspack.
Paid
None.
Free and MIT-licensed, the missing layer that makes Tailwind actually work in mini-programs.
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: MIT License
Use freely, including commercial. Just keep the license.
Commercial use: ✓ Yes
About
- Owner
- ice breaker (User)
- Stars
- 1,841
- Forks
- 100
Explore Further
More tools in the directory
supermemory
Memory engine and app that is extremely fast, scalable. The Memory API for the AI era.
28.8k ★vue-pure-admin
全面ESM+Vue3+Vite+Element-Plus+TypeScript编写的一款后台管理系统(兼容移动端)
20.5k ★NotionNext
Turn your Notion workspace into a fast, customizable website. Built with Next.js + Notion API, with multi-platform deployment and no self-hosted server required.
11.7k ★