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

jl-ui

v2.13.33

Published

kz ui for element-ui 2.x

Readme

theme

集成element-ui theme-chalk主题

document

https://kuaizi-co.github.io/kuaizi-theme/#/

Install

> yarn add @kuaizi/kz-ui@next
# or
> npm i @kuaizi/kz-ui@next -S

Dev

目录结构

▁
kz-ui
├── babel.config.js     - babel配置
├── components          - 组件目录
├── deploy.sh           - 在线文档发布
├── release.sh           - 版本发布
├── examples            - 文档目录
├── gulpfile.js         - theme构建
├── kuaizi-theme        - 在线文档build目录,同步到`kuauzi-co/kuaizi-theme`
├── lib                 - build theme样式css文件
├── package.json        - 项目配置
├── public              - 文档静态资源
├── README.md           - 说明使用文档
├── strip-tags.js       - 文档依赖函数库
├── theme               - theme预处理源文件
└── vue.config.js       - vue-cli3 构建配置文件

文档放在 examples/docs/packages目录,新建markdown 文件即可,比如:

# app.md

::: tip
提示
:::

::: warning
提醒
:::

::: demo 这是一个demo
```html
放代码

:::


### theme

在 `theme` 目录下的 `config/你的主题变量配置.scss`去定义变量

在 `theme` 目录新建 `theme-你的主题名称` 文件,其内容为

```scss
// theme-kz.scss
// 导入变量
@import "./config/kuaizi";
// 导入组件
@import "./config/common";

需注意一下几个文件

  • theme/config/var.scss - 公用的配置文件,与颜色无关
  • theme/config/mixin.scss - mixin 函数
  • theme/config/common.scss - kz-ui 组件依赖样式

scss mixin函数

// $--namespace
@import "../theme-chalk/src/common/var.scss";
@import "../theme-chalk/src/mixins/mixins";

// 单线连接符
// #{$--namspace}-#${name}
// .el-button
@include b(button) {
  // 双线连接符
  // .el-button--default
  @include m(default) {

    // BEM
    // 双下划线连接符
    // .el-button--default__large
    @inclue e (large) {}
  }

  // 状态
  .el-button.is-success
  @include when (success) {}
}

编译主题需要在命令窗口启动

# 同步最新element-ui主题
> yarn update:theme
# 开发
> yarn theme:dev
# build
> yarn theme:build
# 发布新版
> git checkout dev
# 合并分支
> git merge feature/component/tab
# 发布
> yarn release
# 同步文档到gitpages
> yarn deploy

组件

components 目录下的组件样式都统一写在 theme/components 中,组件的配色根据主题配色进行更换。

打包编译

> yarn rollup

Publish

  1. npm publish --tag next 发布tag
  2. npm dist-tag ls @kuaizi/kz-ui 查看tag
  3. npm dist-tag add @kuaizi/[email protected] latest 切换tag

MIT License Copyright (c) www.kuaizi.ai, 2018-preset