Bring Tailwind CSS to mini programs and multi-platform apps.
简体中文 | English
weapp-tailwindcss adapts Tailwind CSS for mini program ecosystems. It transforms Tailwind-generated selectors, utility classes, and selected CSS capabilities into forms that mini programs and multi-platform frameworks can consume more reliably.
It is designed for:
uni-app / uni-app x, Taro, Mpx, native mini programs, weapp-vite, and related stacks.| Area | Support |
|---|---|
| Tailwind CSS | Tailwind CSS v4 |
| Build tools | Vite, Webpack 5, Rspack, Rollup, Rolldown, Gulp, and Node API |
| Frameworks | uni-app / uni-app x, Taro, Mpx, native mini programs, weapp-vite, and related integrations |
| Output targets | Mini programs, H5/Web, App WebView, and related platform differences |
| Runtime ecosystem | merge, variants, cva, runtime, typography, theme-transition, ui, and related packages |
| Node.js | Node.js ^20.19.0 or >=22.12.0 |
| Package | Purpose |
|---|---|
weapp-tailwindcss |
Core transform and bundler integration entry |
@weapp-tailwindcss/postcss |
CSS AST processing, selector compatibility, and platform fallbacks |
@weapp-tailwindcss/postcss-calc |
Safe reduction for calc() expressions |
@weapp-tailwindcss/reset |
Reset stylesheet assets for mini program frameworks |
tailwindcss-config |
Tailwind CSS config loading |
tailwindcss-injector |
Tailwind directive injection and WXML dependency tracking |
weapp-style-injector |
Style entry injection for mini program build artifacts |
| Package | Purpose |
|---|---|
@weapp-tailwindcss/runtime |
Shared runtime layer for escape/unescape, caching, and rpx transforms |
@weapp-tailwindcss/merge |
Mini program runtime wrapper for Tailwind Merge v3 |
@weapp-tailwindcss/variants |
Mini program runtime wrapper for tailwind-variants |
@weapp-tailwindcss/cva |
Mini program runtime wrapper for class-variance-authority |
@weapp-tailwindcss/typography |
Mini program adapted version of Tailwind Typography |
theme-transition |
Theme transition runtime and Tailwind plugin |
@weapp-tailwindcss/ui |
Atomic UI runtime layer for mini programs |
Each package now uses Chinese as its default README.md and provides an English README.en.md.
If you want AI to integrate weapp-tailwindcss in an application project using current best practices, install the official Skill:
npx skills add sonofmagic/skills --skill weapp-tailwindcss
It is useful for:
uni-app / uni-app x, Taro, or native mini program projects.space-x/space-y behavior.Read more in the Skill documentation.
Issues and pull requests are welcome:
Before contributing, read the repository AGENTS.md and the closest AGENTS.md under the target directory.
$ claude mcp add weapp-tailwindcss \
-- python -m otcore.mcp_server <graph>