Tailwind CSS for WeChat Mini Programs
JSON →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.
Traffic · last 30 days ↓43% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany