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

loopit

v1.0.5

Published

A modern, production-ready React component library for building beautiful, accessible, and highly customizable UIs. Built with TypeScript, Tailwind CSS v4+, and a powerful oklch-based design system.

Readme

loopit

A modern, production-ready React component library for building beautiful, accessible, and highly customizable UIs. Built with TypeScript, Tailwind CSS v4+, and a powerful oklch-based design system.


Features

  • 50+ fully themeable, accessible React components
  • Semantic Tailwind v4+ classes (no arbitrary values in components)
  • oklch color system for perceptually uniform, future-proof theming
  • Dark mode and custom themes ready
  • Production-level code quality and accessibility
  • TypeScript types for all components
  • Sidebar and Header with subroute support
  • No Tailwind config required (uses CSS variables)

Installation

# With yarn
yarn add loopit
# Or with npm
npm install loopit

Peer Dependencies

  • react (18+ or 19+)
  • react-dom (18+ or 19+)
  • clsx

Usage

import { Button, Input, Header } from 'loopit';

<Button variant="primary">Click me</Button>
<Input label="Email" placeholder="Enter your email" />

Importing Styles

To ensure all components are styled correctly, import the library's CSS file in your app entry point (e.g., app/layout.tsx or pages/_app.tsx in Next.js):

import 'loopit/dist/loopit.css';

This will include all required Tailwind and custom styles for the components.


Custom Theming

You can override the default color variables to customize the theme. To do this, define your own CSS variables in your global CSS file after importing the library's CSS:

:root {
  --primary: oklch(0.5 0.1 200); /* Your custom color */
  --primary-foreground: oklch(0.1 0.1 0);
  /* ...override any other variables as needed */
}

The values you define will take precedence, allowing you to easily theme the components.


Theming & Design System

  • All colors are defined in globals.css using the oklch color space for maximum fidelity and future-proofing.
  • Use semantic Tailwind classes like bg-primary, text-muted-foreground, border-border, etc. in your own code.
  • Easily override or extend the color system by changing CSS variables in globals.css.
  • Shadows, radii, and spacing are also controlled by CSS variables.

Example (globals.css):

:root {
  --primary: oklch(0.29 0.045 264);
  --primary-foreground: oklch(0.98 0 0);
  --sidebar: oklch(0.97 0.01 264);
  --sidebar-foreground: oklch(0.18 0 0);
  /* ...and many more */
}

Available Components

  • Layout: Sidebar, Header, Modal, Card, Accordion
  • Forms: Input, Textarea, Select, MultiSelect, Checkbox, Radio, Toggle, FilePicker, DatePicker, DateRangePicker
  • Data Display: Table, Badge, Avatar, Typography, Tooltip, Skeleton, Loading, Tabs, Pagination
  • Actions: Button, IconButton
  • Feedback: InactivityModal

All components are fully typed and support custom className, theming, and accessibility out of the box.


Best Practices

  • Use only semantic Tailwind classes in your own code for maximum theme compatibility.
  • Use the provided color variables for custom components.
  • All components are accessible and keyboard navigable by default.
  • Use the currentPath and onNavigate props for navigation-aware components (Sidebar, Header).

Build & TypeScript

  • Built with tsup for fast, modern builds.
  • TypeScript types are included for all components.
  • Exports both ESM and CJS formats.

License

MIT


Author

Muhammad Sohaib Arshad
[email protected]