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

yuzi-ui-theme

v1.0.3

Published

微前端项目通用主题样式包,支持 Design Token、CSS/SCSS/JS 多种引用方式,适用于 Vite/Vue 等现代前端项目。

Readme

yuzi-ui-theme

一个用于微前端或多项目共享的主题样式 npm 包,支持 Vite/Vue/React 等现代前端项目,包含设计原子、基础样式、主题入口和 JS 变量。

目录结构

yuzi-ui-theme/
├── tokens/               # 设计原子(颜色、间距、圆角等变量)
├── base/                 # 基础样式(reset、typography)
└── dist/                 # 构建产物(主题入口、JS变量)

安装

npm install yuzi-ui-theme

或本地调试:

npm install /你的本地路径/yuzi-ui-theme

使用方法

1. 在入口文件引入主题样式

// main.js 或 main.ts
import 'yuzi-ui-theme/dist/themes-light.css';

2. 按需引入原子样式

import 'yuzi-ui-theme/tokens/colors.css';
import 'yuzi-ui-theme/tokens/spacing.css';
import 'yuzi-ui-theme/tokens/radii.css';

3. 在 Vue 组件/样式中使用 CSS 变量

color: var(--brand-primary);
background: var(--gray-1);

4. 在 JS 中使用变量

import { themeVars } from 'yuzi-ui-theme/dist/variables.js';
console.log(themeVars.colorBrandPrimary);

5. SCSS 支持

@import 'yuzi-ui-theme/dist/themes-light.scss';

设计规范

  • 采用 Design Token 思路,便于统一管理和扩展。
  • 支持 CSS、SCSS、JS 多种引用方式。

发布流程

  1. 修改 package.json 信息。
  2. 执行 npm publish 发布到 npm。

如需自定义主题或扩展变量,请在 tokens 目录下添加或修改相关文件。