Tailwind CSS for WeChat Mini Programs

JSON →
library 0.0.1 ·javascript
verified May 27, 2026

weapp-tailwindcss is a comprehensive solution for integrating Tailwind CSS into WeChat Mini Programs (weapp), including multi-platform frameworks like uni-app, Taro, and native mini-programs. Currently stable at version 4.11.2, the core `weapp-tailwindcss` library receives frequent patch updates, often multiple times a week, reflecting active development and maintenance. Its key differentiators include converting Tailwind utility classes to WXSS/CSS via PostCSS, on-demand class extraction (purging) to optimize bundle size, class-name mapping to handle cross-platform differences, and robust support for responsive design and dark mode within the Mini Program environment. It addresses specific challenges such as rpx unit conversion, dynamic class string parsing in JS/TS, and ensures compatibility across various build tools like Webpack, Vite, and Gulp. The project supports Tailwind CSS v3 and v4, and even v2 JIT mode, making it adaptable to different project needs. The `weapp-tw` package itself is a utility within this ecosystem, currently at 0.0.1, likely serving as an internal helper or template that utilizes the core `weapp-tailwindcss` functionalities.

total hits 13
actors 5 distinct systems
last hit 6d ago MetaBot
GPTBot
5
MetaBot
4
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany