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

v12-ui

v0.6.0

Published

A React component library with a focus on utility-first design and accessibility.

Readme

v12-ui

React component library & hooks — Tailwind CSS v4, fully typed, tree-shakable.

npm Bundle Size GitHub License semantic-release: conventional-commits Storybook


Features

  • 10 components — Button, Stack, Text, AnimatedBackground, MagicText, MagicLogo, MagicMouseFollower, Accordion, Select, Toggle
  • 2 hooksuseDataTheme, useReducedMotion
  • Polymorphic components — Button renders as <button> or <a>, Text and Stack render as any HTML tag
  • Automatic dark mode — reads data-theme on <html>; falls back to prefers-color-scheme
  • Canvas particle effects — MagicText, MagicLogo, MagicMouseFollower animate canvas-based particles with spring physics and mouse interaction
  • Accessibility-first components — Accordion (WAI-ARIA accordion pattern, arrow-key nav), Select (WAI-ARIA combobox + listbox), Toggle (WAI-ARIA switch)
  • Reduced motion support — all animation components respect prefers-reduced-motion: reduce
  • Themeable via CSS variables — override --v12-* tokens in your own stylesheet
  • Tailwind CSS v4 — uses Tailwind v4 @theme directive; semantic color tokens map to utility classes
  • Full TypeScript — autocomplete, strict types, polymorphic refs
  • Tree-shakable — ESM + CJS builds via Vite
  • Zero-config — import and use; no plugins, no providers

Install

npm i v12-ui

Quick Start

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

function Demo() {
  return <Button variant="primary">Button</Button>;
}

Components

| Component | Description | Docs | | ------------------ | ---------------------------------- | ---- | | Button | Polymorphic button with variants | | | Stack | Flexbox layout container | | | Text | Polymorphic text with variants | | | Accordion | WAI-ARIA accordion with arrow-key nav, CVA variants | | | Select | WAI-ARIA combobox with keyboard nav, dropdown animation | | | Toggle | WAI-ARIA switch with success-state, CVA sizes | | | AnimatedBackground | Canvas-based light-source animation | | | MagicText | Text assembled from animated particles | | | MagicLogo | Logo image disassembled into particles | | | MagicMouseFollower | Particle trail that follows the cursor | |

Hooks

| Hook | Description | | ----------------- | ------------------------------------------------ | | useDataTheme | Reads data-theme attribute; falls back to OS preference | | useReducedMotion| Returns true when prefers-reduced-motion: reduce is set |

Theming

Import the stylesheet in your entry file:

import "v12-ui/styles.css";

Override CSS variables to customize the theme:

:root {
  --v12-primary: #0d9488;
  --v12-background: #fafafa;
  --v12-foreground: #1a1a1a;
}

[data-theme="dark"] {
  --v12-background: #0a0a0a;
  --v12-foreground: #f5f5f5;
}

All components use semantic --v12-* tokens. Reference the full list in index.css.

Storybook

Explore all components and their variants:

Development

git clone https://github.com/araldev/v12-ui.git
cd v12-ui
npm install
npm run storybook   # localhost:6006

Scripts

| Script | Description | | ------------------ | ---------------------------- | | npm run build | Type-check + build | | npm run dev | Watch mode build | | npm run storybook| Storybook dev server | | npm run build-storybook | Build Storybook static | | npm run lint | ESLint check | | npm run lint:fix | ESLint auto-fix | | npm run commit | Commitizen interactive commit|

License

MIT © Araldev