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

@hotfix-patchui/react

v0.18.1

Published

A React component library built on Base UI primitives with Tailwind CSS v4 and a custom design token system.

Readme

@hotfix-patchui/react

A React component library built on Base UI primitives with Tailwind CSS v4 and a custom --patch-* design token system.

Install

npm install @hotfix-patchui/react

Peer Dependencies

The following must be installed in your project:

npm install react react-dom @base-ui/react

| Package | Version | |---------|---------| | react | ^19.0.0 | | react-dom | ^19.0.0 | | @base-ui/react | ^1.3.0 |

Tailwind CSS v4 Setup

Important: The token CSS must be imported through your Tailwind CSS file — not via a JavaScript import. The @theme inline block requires processing by Tailwind's CSS pipeline.

Add the following to your main CSS file (e.g. app/globals.css):

@import "tailwindcss";
@import "@hotfix-patchui/react/theme/tokens.css";
@source "../node_modules/@hotfix-patchui/react/src";
  • @import loads the design tokens and registers --patch-* colors as Tailwind utilities (e.g. bg-patch-text, text-patch-error)
  • @source tells Tailwind to scan the library's source files so component classes aren't purged

Light / Dark Mode

The tokens support light and dark mode out of the box. Add the dark class to your <html> or <body> element to switch:

<html class="dark">

Usage

import { Button } from "@hotfix-patchui/react";

export default function App() {
  return (
    <div className="flex gap-3">
      <Button variant="primary">Save</Button>
      <Button variant="secondary">Cancel</Button>
      <Button variant="danger">Delete</Button>
    </div>
  );
}

Components

| Component | Description | |-----------|-------------| | Button | Primary, secondary, danger, and link variants with loading state | | Input | Text input with Base UI primitives | | Textarea | Multi-line text input | | Label | Form label | | Select | Dropdown select with popup, items, groups | | Checkbox | Checkbox with Base UI primitives | | Switch | Toggle switch | | Slider | Range slider with value display | | Card | Card container with header, title, description, content, footer | | Badge | Status badge with multiple variants | | Banner | Alert/info banner | | Sheet | Slide-out drawer panel (right, left, top, bottom) | | Dialog | Modal dialog with header, footer, close | | Menu | Dropdown menu with items, checkboxes, radio groups, submenus | | Tooltip | Hover tooltip | | Separator | Visual divider | | Collapsible | Expandable/collapsible content | | Toast | Toast notifications with position options | | Spinner | Loading spinner | | Skeleton | Loading placeholder | | ScrollArea | Custom scrollbar area | | Field / Form | Form field wrapper with label, description, error, validation |

Design Tokens

The library uses CSS custom properties (--patch-*) for theming:

| Token | Light | Dark | |-------|-------|------| | --patch-bg | #fafafa | #09090b | | --patch-surface | #ffffff | #111113 | | --patch-text | #171717 | #ededed | | --patch-text-secondary | #525252 | #a1a1a1 | | --patch-border | #e5e5e5 | rgba(255,255,255,0.06) | | --patch-error | #dc2626 | #f87171 | | --patch-success | #16a34a | #4ade80 | | --patch-warning | #d97706 | #fbbf24 |

Override any token in your own CSS to customize the theme.

License

MIT