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

@handamade/psi-react

v0.44.0

Published

62 React 19 components consuming @handamade/psi-tokens. Zero runtime dependencies, CSS Modules, full TypeScript support.

Readme

@handamade/psi-react

62 React 19 components consuming @handamade/psi-tokens. Zero runtime dependencies, CSS Modules, full TypeScript support.

Installation

Peer dependencies: react@^19.0.0, react-dom@^19.0.0, @handamade/psi-tokens@workspace:*

In workspace: already installed. External: install from the private registry.

pnpm add react react-dom @handamade/psi-tokens

Usage

Import components and their styles:

import { Button } from "@handamade/psi-react";
import "@handamade/psi-react/styles";

// Also import token styles in your app root — all four, not three.
// utilities.css is required: .psi-container and the reduced-motion zeroing
// live there, and omitting it renders a working build subtly wrong.
import "@handamade/psi-tokens/base.css";
import "@handamade/psi-tokens/light.css"; // or dark.css
import "@handamade/psi-tokens/components.css";
import "@handamade/psi-tokens/utilities.css";

export default function App() {
  return <Button size={32} variant="accent">Click me</Button>;
}

App root

Theme CSS never paints the page or sets its font, so your app root does (D107). Theme CSS does declare color-scheme (light or dark, from the theme's base), so date pickers, select lists and scrollbars match the theme (D116). An unlayered color-scheme rule of your own, one in a layer declared after psi.theme, or an inline style overrides it; one in @layer psi.base does not. Put the paint and font rules below in @layer psi.base, but do not put color-scheme there:

@layer psi.base {
  html, body {
    background: var(--psi-bg-primary);
    color: var(--psi-fg-primary);
  }
  body { font: var(--psi-text-14-20-regular); }
  button, input, select, textarea { font: inherit; }
}

Set the font on body, never on html: Psi's scales are in rem, so a font size on the root element shrinks or grows every control, gap and radius.

Components set their own type, but text you place in a Panel, Dialog, Card or tab panel inherits the page's, which is the browser's serif until you set it.

Cascade

Component styles ship in @layer psi.components (D94), so utilities such as psi-gap-24 or psi-fg-secondary win over a component's own values. The flip side: unlayered CSS in your app beats every Psi component rule, whatever its specificity. An unlayered reset like button { padding: 0 } will strip a Button. Put resets and element rules in a layer below Psi's:

@layer psi.base {
  button { padding: 0; font: inherit; }
}

or declare your own layer first: @layer reset, psi.base, psi.theme, psi.components, psi.utilities;.

Conventions

  • size is a pixel number: 24 | 32 | 40 | 48 (never "sm", "md", "lg")
  • variant vocabulary: accent, accent-subtle, neutral, neutral-subtle, ghost, danger, danger-subtle
  • One accent color per visual group; danger only for destructive actions

Component docs

Licence

MIT (see LICENSE). Some icons are copied from Lucide (ISC) and Feather (MIT); their notices and the icons they cover are in THIRD-PARTY-NOTICES.md.