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

@durgarao310/ui-components

v0.2.11

Published

A modern React UI component library built with TypeScript and Tailwind CSS

Readme

UI Component Library

A modern React UI component library built with TypeScript and Tailwind CSS v4.

Installation

npm install @durgarao310/ui-components

Setup in Your Project

This library requires Tailwind CSS to be set up in your consuming project. Follow these steps:

1. Install Tailwind CSS (if not already installed)

npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

2. Configure Tailwind to use our preset

Update your tailwind.config.js:

import tailwindPreset from '@durgarao310/ui-components/tailwind';

/** @type {import('tailwindcss').Config} */
export default {
  presets: [tailwindPreset],
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
    // Include the component library
    "./node_modules/@durgarao310/ui-components/**/*.{js,ts,jsx,tsx}",
  ],
}

3. Import the styles in your main CSS file

Add this to your main CSS file (e.g., src/index.css):

@import '@durgarao310/ui-components/styles';

4. Basic Usage

import { Button, Input, Badge } from '@durgarao310/ui-components';

function App() {
  return (
    <div className="p-8 bg-background text-foreground">
      <Button variant="primary">Click me</Button>
      <Input label="Email" placeholder="Enter your email" />
      <Badge variant="secondary">New</Badge>
    </div>
  );
}

Option 2: Manual CSS Import

If you prefer explicit imports or need to import CSS separately:

// Import CSS first
import '@durgarao310/ui-components/styles';

// Then import components
import { Button, Input } from '@durgarao310/ui-components';

function App() {
  return (
    <div>
      <Button variant="primary">Click me</Button>
      <Input label="Email" placeholder="Enter your email" />
    </div>
  );
}

CSS-in-JS/Bundler Import

// In your main CSS file or index.js
import '@durgarao310/ui-components/styles';

Theme System

This library includes a comprehensive theme system with:

  • Modern Color System: Uses oklch() color space for better consistency
  • Dark Mode Support: Automatic dark mode with .dark class
  • Comprehensive Variables: Colors for cards, popovers, charts, sidebar, etc.
  • Flexible Design Tokens: Multiple radius options (sm, md, lg, xl)

Available CSS Variables

/* Light mode variables */
:root {
  --background: oklch(100% 0 0);
  --foreground: oklch(14.5% 0 0);
  --primary: oklch(20.5% 0 0);
  --primary-foreground: oklch(98.5% 0 0);
  /* ... and many more */
}

/* Dark mode variables */
.dark {
  --background: oklch(14.5% 0 0);
  --foreground: oklch(98.5% 0 0);
  /* ... automatically applied */
}

Components

Button

  • Variants: primary, secondary, outline, ghost
  • Sizes: sm, md, lg

Input

  • Support for labels, error states, and helper text

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build library
npm run build:lib

# Lint code
npm run lint

License

MIT