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

@pikoloo/darwin-ui

v2.0.0

Published

A beautiful macOS-inspired dark theme React component library with glass-morphism aesthetic

Readme

Darwin UI

A beautiful macOS-inspired React component library with glass-morphism aesthetic and full light/dark theme support.

npm version License: MIT

Documentation | GitHub

Features

  • 35+ beautifully crafted React components
  • Light & Dark mode with theme-aware styling
  • Glass-morphism aesthetic throughout
  • Built for React 19 with TypeScript
  • Tailwind CSS v4 + Framer Motion powered
  • shadcn-compatible registry
  • Accessible and keyboard-friendly
  • Lightweight and tree-shakeable
  • AI-friendly with llms.txt documentation

Installation

Using npm/yarn/pnpm

npm install @pikoloo/darwin-ui
# or
yarn add @pikoloo/darwin-ui
# or
pnpm add @pikoloo/darwin-ui

Using shadcn CLI

# Add individual components
npx shadcn add https://darwin-ui.mandalsuraj.com/registry/button.json
npx shadcn add https://darwin-ui.mandalsuraj.com/registry/card.json

Quick Start

import {
  Button,
  Card,
  CardHeader,
  CardTitle,
  CardContent,
} from "@pikoloo/darwin-ui";
import "@pikoloo/darwin-ui/styles";

function App() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Welcome to Darwin UI</CardTitle>
      </CardHeader>
      <CardContent>
        <Button variant="primary">Get Started</Button>
      </CardContent>
    </Card>
  );
}

Components

Layout

  • Card - Composable card with header, content, footer
  • Window - macOS-style window container
  • Sidebar - Responsive navigation sidebar
  • Tabs - Tabbed content navigation
  • Accordion - Collapsible content sections

Forms

  • Button - 11 variants (primary, secondary, destructive, ghost, etc.)
  • Input - Glass-effect styled input
  • Textarea - Multi-line text input
  • Select - Custom dropdown with portal rendering
  • MultiSelect - Multi-selection dropdown
  • Checkbox - Custom checkbox with label
  • Switch - Toggle switch component
  • Slider - Range slider input
  • SearchInput - Search input field
  • DateSelect - Date picker component
  • Upload - File upload component

Data Display

  • Table - Full table system with loading/empty states
  • Badge - Status badges with 13 variants
  • Avatar - User avatar with fallback
  • Progress - Linear and circular progress indicators
  • Skeleton - Loading placeholder
  • Image - Optimized image component

Overlays

  • Modal - Accessible modal dialog
  • Dialog - Composable dialog component
  • Popover - Floating popover content
  • Tooltip - Hover tooltips
  • DropdownMenu - Dropdown menu with items
  • ContextMenu - Right-click context menu

Feedback

  • Toast - Toast notifications with auto-dismiss
  • Alert - Alert dialogs with type indicators

Charts

  • AreaChart - Area chart visualization
  • BarChart - Bar chart visualization
  • LineChart - Line chart visualization
  • PieChart - Pie chart visualization
  • DonutChart - Donut chart visualization
  • StackedBarChart - Stacked bar chart

Utility

  • CloseButton - Consistent close button
  • MdEditor - Markdown editor
  • Reveal - Animation reveal component
  • CompactContactForm - Pre-built contact form

Hooks

import { useIsMobile, useMediaQuery, useEscapeKey } from "@pikoloo/darwin-ui";

// Detect mobile devices
const isMobile = useIsMobile();

// Custom media query
const isDesktop = useMediaQuery("(min-width: 1024px)");

// ESC key handler
useEscapeKey(() => closeModal());

Theming

Darwin UI supports both light and dark modes with CSS variables. The theme automatically adapts to user preference, or you can toggle manually.

/* Dark mode (default) */
:root {
  --background: 0 0% 4%;
  --foreground: 0 0% 95%;
  --card: 0 0% 6%;
  --border: 0 0% 15%;
}

/* Light mode */
.light {
  --background: 0 0% 98%;
  --foreground: 0 0% 10%;
  --card: 0 0% 100%;
  --border: 0 0% 85%;
}

Tailwind Setup

Add Darwin UI's CSS to your Tailwind config:

/* In your global CSS */
@import "tailwindcss";
@import "@pikoloo/darwin-ui/styles";

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Contributing

Contributions are welcome! Please read our Contributing Guide first.

License

MIT License - see LICENSE for details.


Made with care by Suraj Mandal