What problem does it solve?
Setting up Tailwind CSS 4 for mini-programs and multi-platform apps requires different registration points, entry patterns, and target handling per framework, and misconfiguration leads to missing styles or broken builds. This Skill generates minimal, verifiable integration configurations matched to the user's actual project.
Core Features & Use Cases
- Framework-matched configuration: Reads the project's package.json, framework config, and build scripts, then selects the correct registration entry for uni-app, uni-app x, Taro (Webpack 5 or Vite), Mpx, weapp-vite, Vite, Webpack 5, Rspack, Gulp, or native mini-programs.
- Standalone CLI setup: Configures @weapp-tailwindcss/cli (weapp-tw) for single CSS entry builds, stdin/stdout, watch mode, source maps, and class canonicalization with web or weapp targets.
- Boundary routing: Redirects Expo/React Native, ReactLynx/Rspeedy, and custom builder scenarios to the appropriate dedicated skills instead of applying mini-program bundler config.
- Use Case: A developer with a uni-app Vue3 Vite project asks for Tailwind integration and receives the exact vite.config.ts registration with absolute cssEntries, the pure CSS entry file, install commands, and verification steps including arbitrary-value class HMR checks.
Quick Start
Use the weapp-tailwindcss-setup skill to configure Tailwind CSS 4 for my Taro Webpack 5 project targeting WeChat mini-program and H5.