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

@whitekiwi/ui

v0.1.1

Published

PIP React components and styles for WhiteKiwi interfaces

Readme

PIP — Small parts. Clear interfaces. React components built on tokens.

@whitekiwi/ui

Quiet structure. Clear interaction.

PIP's React building blocks: controls, feedback, editorial surfaces, and disclosure. Semantic HTML carries the structure; @whitekiwi/tokens carries the visual language.

Explore components · Source · Release guide

Two packages, one system

| Package | Responsibility | | --- | --- | | @whitekiwi/tokens | Framework-independent CSS values and light/dark themes | | @whitekiwi/ui | React components, component CSS, and interaction states |

Tokens can stand alone. UI requires tokens as a peer dependency; install matching PIP versions. React and React DOM are peers, so your application owns their runtime.

Build your first screen

Once the packages are published to your registry:

npm install @whitekiwi/ui @whitekiwi/tokens react react-dom

React and React DOM 19 or newer satisfy the peer range. Validation currently uses React 19; newer major versions still need your application-level checks. The package is ESM-only and includes TypeScript declarations.

Load global CSS once, tokens first, UI second, then your application overrides:

// Your application entry point (or framework's global CSS entry).
import "@whitekiwi/tokens/theme.css";
import "@whitekiwi/ui/styles.css";
import "./app.css";
import { Button, Disclosure, StaticCard, TextField } from "@whitekiwi/ui";

export function ProfileForm() {
  return (
    <StaticCard tone="neutral" padding="spacious">
      <form action="/profile" method="post">
        <TextField
          label="Display name"
          name="displayName"
          autoComplete="nickname"
          hint="The name people will see."
          required
        />
        <Disclosure label="How is this used?">
          <p>Your display name appears on your profile.</p>
        </Disclosure>
        <Button type="submit">Save profile</Button>
      </form>
    </StaticCard>
  );
}

The form action is illustrative: provide your own /profile handler. The package does not store data or implement form submission. Use your CSS for page layout and spacing between components. Load fonts separately; system fallbacks work too.

Pick the right building block

| Job | Exports | Important behavior | | --- | --- | --- | | Actions and navigation | Button, TextLink | Button defaults to type="button"; set submit explicitly for forms | | Labeled input | TextField | Required label; optional hint / error; generated ID and linked description | | Status and guidance | Badge, Callout | Visual tone is not an automatic live announcement | | Content surfaces | StaticCard, LinkedCard | Article versus anchor; use an href for linked cards and avoid nested controls | | Editorial structure | SectionHeading, CollectionHeading | SectionHeading renders an h2; keep the surrounding heading hierarchy logical | | Progressive disclosure | Disclosure | Radix-backed trigger/content; defaultOpen sets initial state | | Class composition | cn | Combines conditional classes and Tailwind class merging |

Button supports primary, secondary, ghost, and danger variants, with normal or compact sizing. Cards support neutral, raised, brand, and inverse tones, with compact, normal, or spacious padding. TextField forwards native input props; its className styles the wrapper, not the input. An error takes precedence over hint and marks the input invalid, but does not perform validation for you.

Themes and server rendering

Set data-theme="light" or data-theme="dark" on <html>. For system mode, remove the attribute entirely. The token package describes theme setup and semantic overrides.

The JavaScript entry preserves "use client" for React Server Component-aware frameworks, including the cn helper. Call cn only from a client module in those frameworks. Components can be server-rendered as client components, then hydrated; they are not a server-only component API. Keep event handlers in your app's client components, and import global CSS in the location supported by your framework. Keep the server and client tree consistent for React's generated field IDs.

Public surface and limits

  • @whitekiwi/ui: components, cn, and the named types ButtonProps, TextFieldProps, BadgeProps, and CalloutProps
  • @whitekiwi/ui/styles.css: component styles, imported separately
  • @whitekiwi/tokens/theme.css: required token stylesheet from its own package
  • No CommonJS build, global reset, router, font download, or theme persistence

Native semantics, focus styles, reduced-motion rules, and defined contrast pairs are part of the implementation. They do not certify an entire application. Provide meaningful labels and links; verify keyboard flow, announcements, custom styles, and mobile layout in the actual product. Do not use color alone for status.

License

MIT, copyright WhiteKiwi. Third-party dependencies retain their own licenses.