Github url

weui-wxss

by Tencent

Tencent /weui-wxss

A UI library by WeChat official design team, includes the most useful widgets/modules.

12.8K Stars 4.5K Forks Last release: 26 days ago (v2.4.0) Other 61 Commits 8 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

WeUI for 小程序 为微信小程序量身设计

npm versionGitter

概述

WeUI 是一套同微信原生视觉体验一致的基础样式库,由微信官方设计团队为微信内网页和微信小程序量身设计,令用户的使用感知更加统一。包含

button

cell

dialog

progress

toast

article

actionsheet

icon

等各式元素。

以下内容是纯UI库,如果想使用逻辑封装版本,请看小程序组件库 - WeUI

使用

  • 样式文件可直接引用
    dist/style/weui.wxss
    ,或者单独引用
    dist/style/widget
    下的组件的
    wxss
  • 组件的wxml结构请看
    dist/example/
    下的组件

WeUI 黑暗模式

在根结点增加属性

data-weui-theme="dark"

如:

html<view data-weui-theme="dark">
    ...
</view>

预览

微信web开发者工具打开

dist

目录(**请注意,是

dist

目录,不是整个项目**)

preview

WeUI for 小程序

文档

WeUI 视觉标准参考 weui-design

License

The MIT License(http://opensource.org/licenses/MIT)

请自由地享受和参与开源

贡献

如果你有好的意见或建议,欢迎给我们提issue或pull request。

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.