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

@opensig/opendesign-token

v0.0.9

Published

Theme tokens for opendesign design sistem

Readme

安装

使用 npm/pnpm 安装。

# npm
npm i @opensig/opendesign-token

#pnpm
pnpm add @opensig/opendesign-token

调用皮肤变量

  • 选择一套皮肤,引入对应 token 文件
import '@opensig/opendesign-token/themes/e.token.css';
  • 如果需要使用深色、浅色皮肤,或深浅模式切换,可导入对应 token 文件。 并通过 在根容器(一般为根 html 或 body)添加data-o-theme="[light|x-dark]"属性 控制
// 浅色皮肤 data-o-theme=“e.light”
import "@opensig/opendesign-token/themes/e.light.token.css";
// 深色皮肤 data-o-theme=“e.dark
import "@opensig/opendesign-token/themes/e.dark.token.css";

data-o-theme取值如下: | 皮肤 | 浅色 | 深色 | | --------- | ------- | ------ | | Ascend | a-light | a-dark | | Kunpneg | k-light | k-dark | | OpenEuler | e-light | e-dark | | Mindspore | m-light | m-dark | | openUBMC | u-light | u-dark | | openGauss | u-light | u-dark |

调用鸿蒙字体

opendesign设计系统字体默认为鸿蒙字体,支持400、600字重,可以引入对应字体文件

import '@opensig/opendesign-token/fonts/css';

许可

opendesign 使用 MIT license 许可证书。

变更日志

0.0.8

  • fix:修复openeuler皮肤变量命名拼写错误:o-color-mian1 -> o-color-main1

0.0.7

  • 新增字体、字重变量

0.0.3

  • 新增鸿蒙字体定义

0.0.2

  • 新增-o-color-main2 渐变色变量,同时新增-o-color-main2-angle,可定制渐变方向

0.0.1

  • 新增皮肤变量