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

xplode-ui

v0.5.0

Published

Xplode UI - A React component library built with TypeScript, Tailwind CSS and CVA.

Readme

Xplode UI

A personal React component library built with TypeScript, Tailwind CSS v4, CVA, and Radix Slot. Patterns adapted from shadcn/ui — semantic tokens, dark mode, asChild composition, and icon-aware sizing.

Installation

npm install xplode-ui

react and react-dom (v18 or v19) are peer dependencies. Make sure they are installed in your project.

Usage

Import the component and the prebuilt stylesheet once at your app's entry point:

import { Button } from "xplode-ui";
import "xplode-ui/styles.css";

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

The bundled xplode-ui/styles.css is self-contained — you do not need Tailwind CSS installed to use the components.

Dark mode

Tokens flip automatically when any ancestor has the .dark class:

<body className="dark">
  <Button>Looks great in the dark</Button>
</body>

Composition with asChild

Render the styles on a different element (e.g. a Next.js <Link> or a plain <a>) without nesting:

<Button asChild variant="default">
  <a href="/about">About</a>
</Button>

Icons

Drop any SVG inside <Button> and it's auto-sized via base classes:

import { Mail, ArrowRight } from "lucide-react";

<Button>
  <Mail /> Send email
</Button>

<Button variant="secondary">
  Next <ArrowRight />
</Button>

<Button size="icon" variant="ghost" aria-label="Send">
  <Mail />
</Button>

Components

Button

| Prop | Type | Default | | --------- | --------------------------------------------------------------------------------- | ----------- | | variant | "default" \| "outline" \| "secondary" \| "ghost" \| "destructive" \| "link" | "default" | | size | "default" \| "xs" \| "sm" \| "lg" \| "icon" \| "icon-xs" \| "icon-sm" \| "icon-lg" | "default" | | asChild | boolean | false |

All standard <button> attributes are forwarded, and a ref is forwarded to the underlying element. The component exposes data-slot="button", data-variant, and data-size for CSS targeting.

buttonVariants is also exported so you can apply the same styles to other elements:

import { buttonVariants } from "xplode-ui";
<a className={buttonVariants({ variant: "outline", size: "sm" })}>Link</a>

Theming (Tailwind v4 consumers)

If your app already uses Tailwind v4, you can pull in Xplode UI's design tokens and override them in your own @theme:

/* your app.css */
@import "tailwindcss";
@import "xplode-ui/theme.css";

/* make Tailwind scan the library's classes */
@source "../node_modules/xplode-ui/dist";

@theme {
  /* override any token, e.g. the primary color */
  --color-primary: oklch(0.55 0.2 150);
  --color-primary-foreground: oklch(0.98 0 0);
}

Development

npm run storybook   # component playground + docs
npm run test        # run unit/component tests (Vitest + Testing Library)
npm run build       # build the library into dist/

License

MIT