Style a new WeChat Mini Program to match WeChat native UI
Add a dark mode theme to an existing mini program via data-weui-theme
Use the rpx sizing variant to keep layouts responsive across phone sizes
Pull individual components like dialog or toast into a custom mini program
Only works inside the WeChat Mini Program runtime, not the general web.
WeUI for wxss is a UI component library created by WeChat's official design team, specifically for building WeChat Mini Programs. WeChat Mini Programs are lightweight apps that run inside the WeChat chat app without needing to be downloaded separately, and wxss is their CSS-like styling language. This library provides ready-made visual components that match WeChat's native look and feel, so developers building mini programs can quickly create interfaces that feel consistent with the WeChat platform. The component library includes commonly used interface elements: buttons, cells (rows used in list layouts), dialogs (popup messages), progress indicators, toast notifications (brief status messages), article layouts, action sheets (bottom-up menus), and icons. The README is written in Chinese and notes the library is a pure UI/style library -- if you want a version with logic and behavior encapsulated, WeChat also offers a separate component library. To use it, you import the provided wxss stylesheet file directly into your mini program. Dark mode is supported by adding a data-weui-theme="dark" attribute to the root element. The library provides two sizing variants: a default version using px units and an rpx version (WeChat's responsive pixel unit). It is released under the MIT license.
← tencent on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.