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

pita-css

v0.6.4

Published

ドキュメント型サイトに最適化されたClassレスベースのCSSフレームワークです。HTMLタグだけで見やすいデザインが完成し、必要に応じて低水準のユーティリティClassを段階的に追加できます。

Readme

npm install pita-css
pnpm add pita-css

website (ドキュメント)

https://css.pitahex.com/

概要

ドキュメント型のサイトに特化したClassレスな思想がベースの「Classレス」、「低水準のClass」「ドキュメント型サイトにあったら嬉しいJS」が内包されたCSSフレームワークです。そこまでドキュメントにコストを割かない(割けない)ユーザーに最適です。

特徴

PitaCSSは大まかに分類すると以下のような強みがあります。

  • Classレスベースだが、低水準のClassが付属しており柔軟性が高い
  • 素のままでシンプルなデザインになる
  • ライブラリ,フレームワーク非依存(バニラ)
    • なおかつSSR,CSR(SPA)対応

PitaCSS 特徴 (簡潔版)

  • Classレス設計 - HTMLタグだけで美しいデザイン
  • 段階的採用 - Classレス → ユーティリティ → 高レベルクラス
  • ドキュメント特化 - 技術文書・マニュアルサイトに最適
  • フレームワーク非依存 - Vue/React/バニラJS対応

🛠️ 機能分類

  • 変数システム (var.css) - カスタマイズ可能なテーマ
  • レイアウト (main.css) - サイドバー付きレイアウト
  • 余白 (margin.css, padding.css) - .m20, .p10など
  • 文字 (font.css) - .text-xs.text-2xl
  • ブレイクポイントやwidthセット (width.css) - .w-max1250, .hide-max1250など

🎨 UIコンポーネント

  • アラート (alert.css) - .alert.info/success/warning/error
  • プログレス (Classレス) - ストライプ・不確定対応
  • ボタン(Classレス) - シンプルなボタンスタイル
  • リンク (link.css) - .inherit-linkなど便利な低水準のlink装飾があります。

主役はドキュメントです。最低限のUIコンポーネントしかありません。

🔧 JavaScript機能

  • テーマ切替 - ライト/ダーク/自動
  • サイドナビ - 自動折りたたみ・SPA対応
  • プログレスローダー - ページ読み込み表示

すべてバニラJavaScriptで実装しています。

🌏 日本語

  • フォント最適化 - 日本語フォント優先
  • 行間調整 - line-height: 2.2
  • レスポンシブ文字 - Clamp関数使用

💡 開発体験

  • 直感的命名 - .mT20(margin-top), .pX40(padding左右)
  • ゼロ設定 - import後すぐ使用可能(プログレスローダーは手動で初期化(有効化)する必要があります)
  • 軽量 - 依存関係なし

思想

開発者が何もしなくても、HTMLだけで完結できる。

というClassレスの思想に重きを置き、低水準Class (いわゆるユーティリティクラス)、ドキュメントサイトに必要な高度な動的な機能(JS)を足して、バランスよく内包しました。

Classのレベル(段階)

  1. Classレス
    • (h1,p,section等)
  2. 低水準Class (いわゆるユーティリティクラス)
    • (mT20等)
  3. ハイレベルClass
    • (media-text,search-box,alert等)

これらのClassレベルを必要に応じて段階的に使い分けることで、シンプルかつ直感的に使用できます。

直感的に分かりやすい命名規則

そもそも元のCSSがシンプルなため、命名もシンプルです。

ブレイクポイント(珍しいかもしれませんが、タブレット→スマホの順番で尊重します)

iPadなどのタブレットにも対応するため、基本的にブレイクポイントは1250pxです。 また、多くの場合ドキュメントを読むのはスマホではなく**「タブレットやPC」**です。そこも考慮しました。

日本語でも見やすく

Clamp関数を使いレスポンシブ化やline-heightを日本語向けにしました。日本語でも見やすいドキュメントテーションを作れます。