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

@polastack/design-system

v0.1.74

Published

Polastack Design System - UI components and design tokens for business applications

Readme

@polastack/design-system

BtoB業務アプリケーション向けReactデザインシステム。 高密度な業務UIを品質高く、素早く、ブランド統一して構築するためのコンポーネントライブラリ。

技術スタック

  • React 18/19 — コンポーネント基盤
  • Tailwind CSS v4 — ゼロランタイムスタイリング(@theme でトークン統合)
  • Radix UI — アクセシビリティ基盤(ARIA/キーボード/フォーカス管理)
  • CVA — 型安全なバリアント管理
  • TypeScript — 完全な型定義

Storybook

コンポーネントカタログ: https://siracusa-hq.github.io/DesignSystem/

インストール

pnpm add @polastack/design-system

CSS の読み込み

/* index.css */
@import '@polastack/design-system/globals.css';
@source "../node_modules/@polastack/design-system/dist";

フォント

Inter(欧文)と Noto Sans JP(和文)を読み込んでください。

<link
  href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap"
  rel="stylesheet"
/>

基本的な使い方

import { ThemeProvider, Button, Card, CardHeader, CardTitle, CardContent } from '@polastack/design-system';

function App() {
  return (
    <ThemeProvider defaultTheme="system">
      <Card>
        <CardHeader>
          <CardTitle>Hello Polastack</CardTitle>
        </CardHeader>
        <CardContent>
          <Button>Click me</Button>
        </CardContent>
      </Card>
    </ThemeProvider>
  );
}

コンポーネント一覧

コアアトム

Button, Badge, Avatar, AvatarGroup, Separator, Skeleton, Spinner, Card, Tooltip, Toast

フォーム

Label, Input, Textarea, Checkbox, RadioGroup, Switch, Select, Combobox, DatePicker, NumberInput, FormField, DynamicFormField, FormLayout

データ表示

Tabs, EmptyState, Table, DataTable, FilterBar

ナビゲーション + レイアウト

Popover, DropdownMenu, Dialog, CommandPalette, Drawer, AppShell

PWA

BottomNavigation, OfflineIndicator, InstallPrompt, PullToRefresh

チャート / ダッシュボード

StatCard, ChartContainer, chartColors (tokens)

テーマ

ThemeProvider, useTheme

ダークモード

ThemeProvider でライト/ダーク/システム連動の切り替えが可能です。

import { ThemeProvider, useTheme } from '@polastack/design-system';

// アプリルートで
<ThemeProvider defaultTheme="system">
  <App />
</ThemeProvider>

// コンポーネント内で
function ThemeToggle() {
  const { theme, setTheme } = useTheme();
  return <Button onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}>Toggle</Button>;
}

CSS変数ベースのセマンティックトークンにより、全コンポーネントが自動的にダークモードに対応します。

デザイントークン

TypeScript定数としても利用可能です。

import { colors, typography, spacing } from '@polastack/design-system/tokens';

開発

# Storybook 起動(コンポーネントカタログ)
pnpm storybook

# テスト実行
pnpm test

# 型チェック
pnpm typecheck

# ビルド
pnpm build

# バンドルサイズ確認
pnpm size

ブランドカラー

メインカラー: #13C3A0(ティール)

| カテゴリ | カラー | |---------|--------| | Primary | Teal (#13C3A0) | | Success | Green | | Warning | Amber | | Error | Red | | Info | Blue |

リリース

  1. CHANGELOG.md を更新
  2. GitHub で新しい Release を作成(タグ: v0.x.x
  3. GitHub Actions が自動的にテスト・ビルド・publish を実行

ライセンス

MIT License