npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

weapp-tailwindcss

v5.5.8

Published

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

Readme

weapp-tailwindcss

English | 简体中文

Bring Tailwind CSS to every platform. weapp-tailwindcss is the core compiler and build integration layer for delivering utility-first styles to Web, mini programs, and native cross-platform runtimes.

What it provides

  • Tailwind CSS v4 generation through a shared compiler boundary.
  • Vite, Webpack, Rspack, Gulp, PostCSS, and Node.js integration points.
  • Precise class transformation based on the generated Tailwind candidate set.
  • CSS compatibility transforms for WeChat, Alipay, ByteDance, QQ, and other mini-program style environments.
  • Shared generation foundations for React Native, Expo, ReactLynx, and Rspeedy integrations.

Choose an integration

| Target | Recommended entry | | --- | --- | | Web / H5 | weapp-tailwindcss/vite/web for plain Vite, or weapp-tailwindcss/vite, Webpack/Rspack integration | | uni-app / uni-app x | Vite or Webpack integration selected by the framework build chain | | Taro / Mpx / native mini programs | Vite, Webpack, Rspack, or Gulp integration | | React Native / Expo | @weapp-tailwindcss/react-native | | ReactLynx / Rspeedy | @weapp-tailwindcss/lynx |

Start with the installation guide or select a framework from the documentation website.

Plain Vite Web projects can use the dedicated entry to pin the Web target and avoid inheriting framework detection from an enclosing monorepo:

import { WeappTailwindcssWeb } from 'weapp-tailwindcss/vite/web'

export default {
  plugins: [WeappTailwindcssWeb()],
}

The repository provides three canonical templates: uni-app, Taro Vite, and weapp-vite. Each can be installed independently and verified with the template smoke build.

Tailwind CSS 4 entry

Your CSS entry must be imported by the application build graph. Configure cssEntries with absolute paths resolved from the project root when stable entry discovery is required, but do not treat it as a replacement for importing the CSS file.

@import "tailwindcss";
@source "./src";

Tailwind generation remains owned by weapp-tailwindcss. Do not add @tailwindcss/vite or @tailwindcss/postcss as a second generator in the same build.

CLI

Install the independently published CLI together with this package and Tailwind CSS:

pnpm add -D @weapp-tailwindcss/cli weapp-tailwindcss tailwindcss
pnpm exec weapp-tw -i src/input.css -o dist/output.css --watch

The CLI generates Web CSS by default. --target weapp performs CSS-only mini-program compatibility conversion; complete WXML, JavaScript, and WXSS projects still require a bundler integration. Watch mode uses @parcel/watcher native events by default and supports explicit polling with --poll.

See the CLI guide for source maps, stdin/stdout, watch mode, and canonicalize.

Runtime requirements

  • Node.js ^22.18.0 || >=24.11.0 for the current release line.
  • HBuilderX >=5.11 when using uni-app or uni-app x through HBuilderX.

Community and support

License

MIT