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

@liha-css/tokens

v0.0.0

Published

`@liha-css/tokens` は **CSS Variables(Design Tokens)** を配布します。 このパッケージは “スタイルを当てる” のではなく、**スタイルの材料(値)だけ**を提供します。

Readme

@liha-css/tokens

@liha-css/tokensCSS Variables(Design Tokens) を配布します。 このパッケージは “スタイルを当てる” のではなく、スタイルの材料(値)だけを提供します。

  • Palette tokens: --liha-color-blue-6 のような色の階調
  • Semantic tokens: --liha-color-text-main のような「用途」に紐づいた値
  • UI tokens: radius / shadow / z-index など、UIの土台となる値

すべての変数は --liha- プレフィックス付きです(他ライブラリとの衝突を避けるため)。

Install

pnpm add @liha-css/tokens
# or npm i @liha-css/tokens
# or yarn add @liha-css/tokens

Usage

このパッケージは @layer liha.tokens で定義されます。 reset / foundation と併用する場合は、import順で優先順位が決まるため、基本は 最初に読み込むのを推奨します。

Recommended order: tokensresetfoundation

import '@liha-css/tokens'

Token structure

1) Palette (raw scale)

直接使ってもOKですが、基本は semantic 経由を推奨します。

例:

  • --liha-color-gray-0 .. 9
  • --liha-color-blue-0 .. 9
  • --liha-color-red-0 .. 9
  • ...etc

2) Semantic (meaning)

色の用途を固定し、アプリ側は “意味” を参照します。

例:

  • --liha-color-bg-default
  • --liha-color-text-main
  • --liha-color-border-default
  • --liha-color-primary-main
  • --liha-color-danger-main
  • --liha-color-focus-ring
  • --liha-color-link, --liha-color-link-hover

使い方例

.card {
  background: var(--liha-color-bg-surface);
  color: var(--liha-color-text-main);
  border: 1px solid var(--liha-color-border-default);
  border-radius: var(--liha-radius-surface);
  box-shadow: var(--liha-shadow-surface);
}

3) Radius

Tailwind をリスペクトした段階値です。

  • --liha-radius-none
  • --liha-radius-sm
  • --liha-radius-md
  • --liha-radius-lg
  • --liha-radius-xl
  • --liha-radius-2xl
  • --liha-radius-3xl
  • --liha-radius-full

Semantic:

  • --liha-radius-control
  • --liha-radius-surface
  • --liha-radius-modal
  • --liha-radius-pill

4) Shadow

Tailwind をリスペクトした段階値です。

  • --liha-shadow-none
  • --liha-shadow-sm
  • --liha-shadow-md
  • --liha-shadow-lg
  • --liha-shadow-xl
  • --liha-shadow-2xl

Semantic:

  • --liha-shadow-surface
  • --liha-shadow-popover
  • --liha-shadow-modal

5) Z-index

段階が分かれば勝ち、の思想で 用途に名前を付けたトークンです。

  • --liha-z-base
  • --liha-z-sticky
  • --liha-z-dropdown
  • --liha-z-popover
  • --liha-z-modal
  • --liha-z-toast
  • --liha-z-overlay

使い方例

.modal {
  z-index: var(--liha-z-modal);
}
.toast {
  z-index: var(--liha-z-toast);
}

Theme (optional)

将来的にテーマ(darkなど)を追加する場合は、palette は固定し、semantic の上書きで切り替えるのを推奨します。

[data-theme='dark'] {
  --liha-color-bg-default: var(--liha-color-gray-9);
  --liha-color-text-main: var(--liha-color-white);
  /* ...必要な semantic を上書き */
}

Notes

  • このパッケージは タイポグラフィのスタイル(h1…)は提供しません。 そういった“見た目”を揃えたい場合は、Tailwind のように クラスユーティリティとして別途用意する方針です。
  • @layer を使用します(CSS Cascade Layers をサポートするブラウザが対象です)。