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

tinper-bee-theme-cli

v0.0.9

Published

主题定制cli工具,以及组件库依赖分析

Readme

tinper-bee-theme-cli

介绍

结合tinper-bee实现主题定制功能的cli工具。

安装


$ npm install tinper-bee-theme-cli -g

使用


$ mkdir theme && cd theme

$ tinper-theme init

> 会在当前目录下生成一个themeColor.json文件,然后修改各项色值(变量注解如下),并且保存。

$ tinper-theme build

  会提示你输入版本号,回车 等待一段时间后,会出现打包后的css的连接(目前css文件会托管到cdn上)通过连接下载。
  
> 目前只有[email protected]以上的版本才支持主题定制。
> 稍等片刻安装结束后,会输出CDN地址为打包成功!

分析组件依赖关系命令

>需要进入tinper-bee跟目录

$ tinper-theme relation

> 单个组件依赖

$ tinper-theme relation-all

> 全部组件依赖

组件库提供向上兼容模式

在入口处,引入样式:

import 'tinper-bee/assets/tinper-bee-default.css';

CDN引入:


<script src="//design.yonyoucloud.com/static/tinper-bee/latest/assets/tinper-bee-default"></script>

即可兼容1.x的版本(蓝色风格)

组件库提供向上兼容模式,增加前缀。

# tinper-theme build
  Please choose ? (Use arrow keys)
?   tinper-bee-default.css
    custom tinper-bee.css
  1. tinper-bee-default.css 默认为蓝色,并且给当前的样式前,加入前缀,兼容之前老版本的tinper-bee.css 样式(默认)
  2. custom tinper-bee.css 为自定义主题打包。

命令大全

项目根目录,使用以下命令完成对应功能。

命令5会有一分钟的延时,请耐心等待。

| # | Scripts 脚本命令 | Description 功能描述 | | --- | --- | --- | | 1 | tinper-theme h | api 查询 | | 2 | tinper-theme v | 版本查询 | | 3 | tinper-theme init | 生成主题自定的必要文件| | 4 | tinper-theme build | 打包编译生成自定义的css文件 | | 5 | tinper-theme relation |【需要进入tinper-bee跟目录】输入单个包,分析该包的组件相互依赖关系 | | 6 | tinper-theme relation-all |【需要进入tinper-bee跟目录】查询tinper-bee下,所有的包的依赖关系 |

help

$ tinper-theme

  Usage :

  1. tinper-theme init           themeColor.json file has been created, please modify the theme file
  2. tinper-theme h              Help
  3. tinper-theme v              Version
  4. tinper-theme build         build tinper scss file

tinper-bee 主题样式文件注解(themeColor.json)


/* 全局样式 */
$default-color               // 默认色
$primary-color               // 主题色
$font-family-primary         // 字体
$font-size-base              // 字号
$text-color-base             // 字体颜色
$border-color                // 边框色
$item-hover-bg-color-base    //条目hover背景色
$item-selected-bg-color-base //条目selected背景色

/* 按钮细化样式 */
$secondary-color                 // 次按钮背景色
$button-secondary-text-color     // 次按钮字体色

/*表格细化样式*/
$table-header-background-color   // 表头背景色
$table-header-text-color         // 表头文字颜色
$table-border-color-base         // 表格分割线颜色