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

@spikestudio-jp/uikit

v0.5.0

Published

shadcn/ui + Tailwind CSS v4 ベースの UI コンポーネントライブラリ。

Readme

@spikestudio-jp/uikit

shadcn/ui + Tailwind CSS v4 ベースの UI コンポーネントライブラリ。

Storybook(コンポーネントカタログ): https://spikestudio.github.io/uikit/


インストール

npm registry で公開されています。認証不要でインストールできます。

pnpm add @spikestudio-jp/uikit

バージョンを固定したい場合:

pnpm add @spikestudio-jp/[email protected]

利用可能なバージョンは Releases で確認してください。


セットアップ(Next.js)

1. グローバル CSS をインポート

globals.css(またはアプリのエントリ CSS)に追加します。

@import "@spikestudio-jp/uikit/globals.css";

2. Tailwind v4 の設定

globals.css@source ディレクティブを追加して、uikit のクラスをスキャン対象に含めます。

@import "@spikestudio-jp/uikit/globals.css";

@source "../node_modules/@spikestudio-jp/uikit/dist";

3. コンポーネントを使う

import { Button } from "@spikestudio-jp/uikit/components/ui/button"
import { DataTable } from "@spikestudio-jp/uikit/components/composites/data-table"
import { SidebarLayout } from "@spikestudio-jp/uikit/components/layouts/sidebar-layout"

テーマカスタマイズ

テーマは CSS 変数で制御します。globals.css でデフォルト値を上書きできます。

@import "@spikestudio-jp/uikit/globals.css";

:root {
  --primary: oklch(0.5 0.2 240);        /* カラーテーマ */
  --radius: 0.75rem;                     /* 角丸 */
  --component-height: 2.25rem;           /* コンポーネント高さ */
}

プリセットテーマを使う場合:

@import "@spikestudio-jp/uikit/themes/blue.css";     /* blue / indigo / green / rose / amber */
@import "@spikestudio-jp/uikit/themes/radius-rounded.css"; /* sharp / default / rounded / pill */

コンポーネント一覧

UI(プリミティブ)

shadcn/ui ベースの基本コンポーネント群です。

| コンポーネント | インポートパス | |---|---| | Button | @spikestudio-jp/uikit/components/ui/button | | Input | @spikestudio-jp/uikit/components/ui/input | | Select | @spikestudio-jp/uikit/components/ui/select | | Dialog | @spikestudio-jp/uikit/components/ui/dialog | | Sheet | @spikestudio-jp/uikit/components/ui/sheet | | Tabs | @spikestudio-jp/uikit/components/ui/tabs | | Table | @spikestudio-jp/uikit/components/ui/table | | Badge | @spikestudio-jp/uikit/components/ui/badge | | Card | @spikestudio-jp/uikit/components/ui/card | | Form | @spikestudio-jp/uikit/components/ui/form | | Sidebar | @spikestudio-jp/uikit/components/ui/sidebar | | Stepper | @spikestudio-jp/uikit/components/ui/stepper | | Chart | @spikestudio-jp/uikit/components/ui/chart | | Calendar | @spikestudio-jp/uikit/components/ui/calendar | | その他 50+ | Storybook で確認 |

Composites(複合コンポーネント)

| コンポーネント | インポートパス | 概要 | |---|---|---| | DataTable | …/composites/data-table | ソート・フィルタ・ページネーション付きテーブル | | DataGrid | …/composites/data-grid | インライン編集対応グリッド | | Kanban | …/composites/kanban | ドラッグ&ドロップ対応カンバン | | Gantt | …/composites/gantt | ガントチャート | | Editor | …/composites/editor | Tiptap ベースのリッチテキストエディタ | | CodeBlock | …/composites/code-block | Shiki ベースのコードハイライト | | Tags | …/composites/tags | タグ入力・表示 | | Tree | …/composites/tree | ツリービュー | | MiniCalendar | …/composites/mini-calendar | ミニカレンダー | | FilterBar | …/composites/filter-bar | フィルターバー | | SearchBar | …/composites/search-bar | 検索バー | | Pagination | …/composites/pagination | ページネーション | | ConfirmDialog | …/composites/confirm-dialog | 確認ダイアログ | | CommentThread | …/composites/comment-thread | コメントスレッド | | その他 | Storybook で確認 | |

Layouts

| コンポーネント | インポートパス | 概要 | |---|---|---| | SidebarLayout | …/layouts/sidebar-layout | サイドバーナビ付きレイアウト | | TopnavLayout | …/layouts/topnav-layout | トップナビ付きレイアウト | | TopnavSidebarLayout | …/layouts/topnav-sidebar-layout | トップナビ+サイドバー複合 |

Pages(ページテンプレート)

| コンポーネント | インポートパス | |---|---| | ListPage | …/pages/list-page | | DetailPage | …/pages/detail-page | | FormPage | …/pages/form-page | | DashboardPage | …/pages/dashboard-page | | WizardPage | …/pages/wizard-page |


ユーティリティ

import { cn } from "@spikestudio-jp/uikit/lib/utils"
import { useIsMobile } from "@spikestudio-jp/uikit/hooks/use-mobile"
import { useDarkMode } from "@spikestudio-jp/uikit/hooks/use-dark-mode"

CI/CD での利用

npmjs.com で公開されているため、追加の認証設定は不要です。通常の pnpm add でインストールできます。


開発

pnpm install
pnpm storybook                  # Storybook 起動(http://localhost:6006)
pnpm build                      # ライブラリビルド
pnpm test                       # テスト実行
pnpm catalog:generate           # catalog.json 再生成

リリース

git tag を push すると GitHub Actions が自動でビルドし、npmjs.com に publish します。

git tag v0.x.y
git push origin v0.x.y

前提: GitHub リポジトリに NPM_TOKEN シークレットの設定が必要です。

Actions の実行状況: spikestudio/uikit/actions