# sonofmagic/weapp-tailwindcss

Bring Tailwind CSS to every platform! 把 Tailwind CSS 的原子化开发体验带到全端！

Repository: https://github.com/sonofmagic/weapp-tailwindcss
Canonical: https://ross.abutalabs.com/products/weapp-tailwindcss
Homepage: https://tw.weapp.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: mp, weapp, tailwindcss, webpack, postcss, mini, tailwind, vite, tarojs, uni-app, mpx, rax
Last push: 2026-08-26T17:11:49+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 1689, "days_push": 7, "days_rel": 7, "gap_med": 0.0, "n_releases_24m": 511}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1850, forks 102 (observed 2026-08-28T04:05:44.236203+00:00)

## What it is
weapp-tailwindcss is a cross-platform compiler and build integration layer that brings Tailwind CSS 4's utility-first workflow to Web/H5, WeChat and other mini programs, App WebView, uni-app, Taro, React Native, and Lynx. It generates target-specific CSS and transforms generated class names in templates and scripts, integrating via Vite, Webpack, Rspack, Gulp, Metro, and a standalone CLI.

## Use cases
- use tailwind css in a wechat mini program
- use tailwind css with uni-app or taro
- share one tailwind setup across web and mini program builds
- compile tailwind css for react native or expo
- escape and transform tailwind class names for mini program wxml
- use tailwind css in a lynx or rspeedy project
- generate mini-program-compatible css from tailwind v4

## When to choose
- you build mini programs (WeChat, Alipay, Douyin) or cross-platform apps with uni-app/Taro and want Tailwind CSS 4
- you need one utility-first styling pipeline across web, mini program, and native targets
- you want build-tool integrations (Vite, Webpack, Rspack, Gulp, Metro) rather than manual CSS post-processing

## When to avoid
- your project is plain web-only Tailwind with no mini program or native targets
- you use Tailwind CSS v3 or older, since current docs and maintenance target v4
- you rely on unsupported native-app features like gap-* or space-* utilities in uni-app x

## Facets
- artifact type: library
- maturity: active
- function: css-framework, build-tool, cli, plugin-system, templating
- domain: frontend, web-development, cross-platform, mobile-development, developer-tools
- platform: cli, cross-platform
- tags: tailwindcss, mini-programs, weapp, wechat-mini-program, uni-app, taro, react-native, lynx, utility-first-css, postcss, vite-plugin, webpack-plugin, rspack, metro, nodejs, web-server

## Member repositories
- sonofmagic/weapp-tailwindcss (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:44.236203+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:17:14.868171+00:00, confidence not recorded.
  - readme: https://github.com/sonofmagic/weapp-tailwindcss (fetched 2026-08-28T04:05:44.236203+00:00, sha f672793931a7)
  - homepage: https://tw.weapp.dev (fetched 2026-08-29T10:56:23.830500+00:00, sha 78e237eb92bc)
  - site_page: https://tw.weapp.dev/docs/api/interfaces/UserDefinedOptions (fetched 2026-08-29T10:56:23.837171+00:00, sha f8423542e08f)
  - site_page: https://tw.weapp.dev/docs/quick-start/native/install (fetched 2026-08-29T10:56:23.838877+00:00, sha 250b787e55c9)
  - site_page: https://tw.weapp.dev/docs/quick-start/frameworks/uni-app-x (fetched 2026-08-29T10:56:23.840543+00:00, sha 16399938473a)
  - site_page: https://tw.weapp.dev/docs/quick-start/react-native-expo (fetched 2026-08-29T10:56:23.842416+00:00, sha 9ba14a489d92)
  - site_page: https://tw.weapp.dev/docs/quick-start/frameworks/lynx (fetched 2026-08-29T10:56:23.844300+00:00, sha cf4b98db3221)
  - site_page: https://tw.weapp.dev/docs/intro (fetched 2026-08-29T10:56:23.833187+00:00, sha 66775901a14b)
  - site_page: https://tw.weapp.dev/docs/showcase (fetched 2026-08-29T10:56:23.835073+00:00, sha e22e5820eb96)
  - site_page: https://tw.weapp.dev/docs/quick-start/install (fetched 2026-08-29T10:56:23.846046+00:00, sha 396ced55774a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
