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

@lifanh/quiet-paper

v0.2.2

Published

Quiet paper design system — Tailwind v4 tokens, React primitives, and prose styling

Readme

@lifanh/quiet-paper

Quiet paper design system — React primitives, rendered Markdown prose styling, and Tailwind v4 tokens for personal sites and app demos.

Requirements

  • React 18 or 19
  • Tailwind CSS v4 with utilities used by components (bg-accent, font-ui, text-muted, etc.)
  • @tailwindcss/typography for the Prose rendered Markdown wrapper

Install

npm install @lifanh/quiet-paper
npm install -D @tailwindcss/typography

Local development (link while editing the package):

npm install /path/to/quiet-paper
# or: npm link @lifanh/quiet-paper

Styles (once per app)

In global.css:

@import "tailwindcss";
@plugin "@tailwindcss/typography";
@import "@lifanh/quiet-paper/styles/tailwind-sources.css";
@import "@lifanh/quiet-paper/styles/tokens.css" layer(theme);
@import "@lifanh/quiet-paper/styles/tailwind-theme.css";

@layer base {
  /* document defaults — see astro-quiet-paper/src/styles/global.css */
}

Use

import {
  Button,
  Field,
  Panel,
  EmptyState,
  ErrorState,
  HairlineTable,
  Prose,
} from "@lifanh/quiet-paper";

Rendered Markdown prose

Wrap Markdown-rendered HTML with Prose. It follows Astro’s Tailwind Typography recipe: the host app registers @tailwindcss/typography, and this package owns the quiet-paper element modifiers.

---
import { Prose } from "@lifanh/quiet-paper";
const { Content } = await render(entry);
---

<Prose className="mt-10 text-lg leading-relaxed">
  <Content />
</Prose>

Prose covers common Markdown/GFM output: headings, paragraphs, links, lists, blockquotes, inline code, fenced code blocks, tables, images, horizontal rules, footnotes, task lists, figures, details, kbd, mark, del, sup, and sub.

Callouts are explicit classes inside rendered content; parser transforms stay in the host app:

<aside class="qp-callout qp-callout-note">
  <p><strong>Note</strong></p>
  <p>This is a quiet paper callout.</p>
</aside>

Supported tones: qp-callout-note, qp-callout-warning, qp-callout-error.

What stays in the app

  • Astro layouts, marketing pages, demo-specific composites (FetchDemo, RunsTable, …)
  • Markdown parser transforms for custom callout syntax
  • This package is primitives only — no business logic

Canonical tokens

Edit styles/tokens.css here first; apps should not fork hex values in components.

Why tailwind-sources.css?

Tailwind v4 does not scan node_modules. The package ships a one-line @source "../dist" file so consumers never hard-code ../../node_modules/... (breaks when global.css moves or you use pnpm).

Consumer contract (Pattern A only)

All consumers are expected to use Tailwind CSS v4. Setup:

@import "tailwindcss";
@plugin "@tailwindcss/typography";
@import "@lifanh/quiet-paper/styles/tailwind-sources.css";
@import "@lifanh/quiet-paper/styles/tokens.css" layer(theme);
@import "@lifanh/quiet-paper/styles/tailwind-theme.css";

No pre-built utility CSS in this package; the app’s Tailwind build generates utilities after scanning package sources via tailwind-sources.css.

Do not add @source paths into node_modules from the app — the package owns that via tailwind-sources.css.

Contrast

After editing styles/tokens.css, re-check foreground/background pairs (WCAG AA 4.5:1 for normal text).

Docs