Skip to main content
Tailwind CSS 4 + cross-platform generation pipeline

weapp-tailwindcss

AtomGit G-Star graduation project badge

One utility-first workflow for Web, mini programs, and native cross-platform apps.

Reuse compilers, builder integrations, and runtime adapters while preserving each platform's native semantics and engineering boundaries.

generatortarget: web | weapp
Tailwind CSS entryEntry

@import "tailwindcss" + @source@import + @source

Precise classNameSet hitMatch

Transform generated classes onlyGenerated classes only

Web / Weapp split outputOutput

target switches automaticallyWeb vs mini app output

OutputStable CSS + precise class escaping
Tailwind
CSS 4@source
Frameworks
uni-appTaroReact NativeLynx
Builders
WebpackViteMetroRspeedy
Runtime
mergecvavariants

Keep firm engineering boundaries and own generation plus transforms

Reuse Tailwind CSS 4 input while keeping source scanning, style generation, class escaping, and runtime utilities in one engineering pipeline.

Builders own Tailwind generation

Webpack, Vite, Gulp, and custom Node flows all route output through weapp-tailwindcss so mini app builds do not stack the official Tailwind generation plugin.

Precise transforms

Only class names that Tailwind already generated are transformed, so business strings stay untouched.

Multi-platform output targets

Generate Web CSS, mini-program CSS, or native style manifests for each target.

Cross-ecosystem delivery

Supports uni-app, Taro, Mpx, Weapp-vite, React Native, Lynx, and native mini programs.

Runtime utility family

merge, variants, and cva stay consistent around escaping on mini app targets.

One Tailwind input, delivered per runtime target

H5/Web keeps native Tailwind semantics; mini apps add selectors, units, escaping, and runtime boundaries. Teams keep one entry and wire frameworks around it.

Read the introduction
Quick StartStart with Tailwind CSS 4 and the CSS-first entry.IntroductionLearn how weapp-tailwindcss adapts Tailwind CSS for mini app runtimes.Release NotesFollow English release notes and behavior changes.AI / llmsLet models read a compact index and reduce stale setup advice.CommunityJoin GitHub Discussions and share framework-specific issues.