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

@harsh2505/neumorphic-ui

v0.0.8

Published

A neumorphic UI component library

Downloads

74

Readme

🎨 Neumorphic UI

Beautiful, accessible, and customizable React components with Neumorphic (Soft UI) design.

npm version License Downloads

Neumorphic UI is a modern React component library that brings the soft, tactile feel of neumorphism to your web applications. Crafted with care and attention to detail, it combines the aesthetic appeal of Soft UI with the robustness of Base UI and the flexibility of Tailwind CSS.

✨ Features

  • Soft UI Aesthetics: Pre-configured neumorphic shadows, gradients, and rounded corners for a premium feel.
  • Accessible: Built on top of Base UI primitives to ensure full WAI-ARIA compliance and keyboard navigation.
  • Dark Mode Ready: Native support for dark mode with automatic color and shadow adjustments.
  • Fully Typed: Written in TypeScript to provide excellent developer experience and type safety.
  • Customizable: Styled with Tailwind CSS, allowing you to easily override styles or adjust the theme variables.

🚀 Installation

Install the package via npm, yarn, or pnpm:

npm install @harsh2505/neumorphic-ui

Peer Dependencies

Ensure you have the necessary peer dependencies installed in your project:

npm install react react-dom tailwindcss @base-ui/react

🛠️ Setup

  1. Import Styles: Import the library's CSS file in your main entry file (e.g., main.tsx, App.tsx, or index.tsx).

    import "@harsh2505/neumorphic-ui/index.css";
  2. Tailwind Configuration: Since this library uses Tailwind CSS, ensure your project is set up to process Tailwind classes.

💻 Usage

Import components directly from the package and use them in your React application.

Button Example

import { Button } from "@harsh2505/neumorphic-ui";
import { Play } from "lucide-react";

function PlayerControls() {
  return (
    <div className="flex gap-4 p-8 bg-zinc-200 dark:bg-zinc-900">
      <Button variant="primary" shape="circle" size="icon">
        <Play className="w-4 h-4" />
      </Button>
      <Button>Click Me</Button>
    </div>
  );
}

Card Example

import {
  Card,
  CardHeader,
  CardTitle,
  CardDescription,
  CardContent,
} from "@harsh2505/neumorphic-ui";

function InfoCard() {
  return (
    <Card className="max-w-sm">
      <CardHeader>
        <CardTitle>Neumorphism</CardTitle>
        <CardDescription>Soft UI Design System</CardDescription>
      </CardHeader>
      <CardContent>
        <p>
          Neumorphism combines flat design and skeuomorphism. It mimics
          real-world objects with soft shadows and highlights.
        </p>
      </CardContent>
    </Card>
  );
}

Form Controls

import { Input, NeuCheckbox, NeuSwitch } from "@harsh2505/neumorphic-ui";

function Settings() {
  return (
    <div className="space-y-6 max-w-xs p-4">
      <Input placeholder="Username" />

      <div className="flex items-center gap-3">
        <NeuCheckbox id="notifications" />
        <label htmlFor="notifications" className="text-sm">
          Enable Notifications
        </label>
      </div>

      <div className="flex items-center justify-between">
        <span className="text-sm font-medium">Dark Mode</span>
        <NeuSwitch />
      </div>
    </div>
  );
}

🧩 Available Components

The library includes a growing collection of components:

  • Layout: Card, Nav, Tabs
  • Inputs: Button, Input, NeuCheckbox, NeuSwitch, Slider
  • Feedback: NeuProgressBar, Badge

🎨 Customization

The library relies on CSS variables for its theming. You can override these variables in your global CSS to match your brand colors.

:root {
  /* Example: Changing the primary color */
  --color-primary: 99 102 241; /* Indigo-500 */

  /* Example: Adjusting the background */
  --color-background: 228 228 231; /* Zinc-200 */
}

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.