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

creo-ui-web

v0.14.0

Published

Creo UI — Web package (CSS custom properties + JS tokens)

Readme

creo-ui-web

Creo UI の Web 向け Design Token 配布パッケージ。

Creo ecosystem (creo-memories, vantage-point 他) の Web アプリに、共通の色 / 余白 / typography / radius / shadow を CSS custom propertiesJavaScript 定数 として提供する。

単一の W3C Design Tokens (DTCG) から生成されているため、どのパッケージから読み込んでも Creo の視覚的一貫性が保たれる。

インストール

bun add creo-ui-web
# or
npm install creo-ui-web
# or
pnpm add creo-ui-web

使い方

1. CSS custom properties として読み込む (推奨)

// エントリポイントで一度だけ読み込む
import 'creo-ui-web/tokens.css'

読み込むと :root に CSS 変数が定義される:

.my-button {
  background: var(--color-brand-primary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

2. JS 定数として参照する

ビルド時に値を埋め込みたい場合や、JS で計算したい場合:

import { ColorBrandPrimary, SpacingMd } from 'creo-ui-web/tokens.js'

console.log(ColorBrandPrimary) // '#73e7aa'
console.log(SpacingMd)          // '16px'

TypeScript 型定義 (tokens.d.ts) が同梱されているので補完が効く。

提供するトークン

| Category | 例 | 型 | |----------|-----|----| | color.brand.* | primary, primary-hover, secondary, accent | hex string | | color.semantic.* | success, warning, error, info | hex string | | color.surface.* / color.text.* | 背景 / テキスト色 | hex string | | spacing.* | xs / sm / md / lg / xl (5-step size-feel rule) | px | | margin.* | xs / sm / md / lg / xl (5-step size-feel rule) | px | | radius.* | none + xs / sm / md / lg / xl + full (5-step + 2 special) | px | | layout.gap.* | tight / sibling / section / page (semantic between-ness, aliases to spacing/margin) | rem | | layout.target.* | tap (44pt HIG) / focus (32pt) / hit (24pt) — minimum element dimensions | rem | | typography.title.* | hero / page / section / subsection / card (role-based headings, alias to display/size) | rem | | typography.body.* | lead / default / emphasis / helper / caption (role-based body, alias to size) | rem | | shadow.* | sm / md / lg / xl | CSS shadow string | | typography.family.* | sans / mono / display | font-family stack | | typography.size.* | xs / sm / md / lg / xl (body text, 5 step) | px | | typography.display.* | xs / sm / md / lg / xl (heading / hero, 5 step) | px | | typography.weight.* | regular / medium / bold 等 | number | | typography.line-height.* | tight / normal / relaxed | number |

完全な一覧は install 後の node_modules/creo-ui-web/dist/tokens.css または GitHub repository 参照。

別 platform 向けパッケージ

同じ token SSOT から別 platform 向けにも配布している:

| Platform | Package | |----------|---------| | Apple (iOS / macOS / watchOS / tvOS) | SPM: https://github.com/chronista-club/creo-ui (target CreoUI) | | Rust | creo-ui (将来 crates.io 予定) |

Status

Phase 1 — W3C DTCG Token MVP。Phase 2 で Web Components、Phase 4 で theme 切替 (light / dark / high-contrast) を予定。

詳細は Linear Epic CREO-84 を参照。

License

Apache-2.0 — LICENSE