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

@victorfbrito/neo-ui-demo

v0.2.1

Published

A modern React component library built with Tailwind CSS v4 and TypeScript. Features dark mode, design tokens, and comprehensive Storybook documentation. Requires Tailwind v4+.

Readme

Neo UI Demo

A modern React component library built with Tailwind CSS v4 and TypeScript. Features dark mode, design tokens, and comprehensive Storybook documentation.

⚠️ Requirements: This library requires Tailwind CSS v4 and @tailwindcss/postcss in your project. See installation steps below.

🚀 Features

  • Modern Stack: Built with React 18+, TypeScript, and Tailwind CSS v4+
  • Design System: Comprehensive design token system with dark mode support
  • Type Safe: Full TypeScript support with exported types
  • Accessible: Built with accessibility in mind
  • Tree Shakable: Optimized bundle size with tree shaking
  • Storybook: Comprehensive documentation and testing environment

📦 Installation

Step 1: Install the library

npm install @victorfbrito/neo-ui-demo

Step 2: Install Tailwind CSS v4

npm install -D tailwindcss@latest @tailwindcss/postcss

Step 3: Configure PostCSS

Create postcss.config.js in your project root:

export default {
  plugins: {
    '@tailwindcss/postcss': {}
  }
}

Step 4: Setup your CSS file

In your main CSS file (e.g., src/index.css):

@import "tailwindcss";

/* 👇 Scan the component library */
@source "../node_modules/@victorfbrito/neo-ui-demo/dist";

/* 👇 Import library styles */
@import "@victorfbrito/neo-ui-demo/styles";

Then import this CSS in your src/main.tsx:

import './index.css'

🎨 Usage

Basic Example

import { Button, Input, Typo } from '@victorfbrito/neo-ui-demo';

function App() {
  return (
    <div className="p-8">
      <Typo variant="headline-lg">Welcome to My UI Library</Typo>
      <Input placeholder="Enter your name" />
      <Button variant="primary">Get Started</Button>
    </div>
  );
}

Dark Mode

// Enable dark mode
document.documentElement.classList.add('dark');

// Toggle dark mode
document.documentElement.classList.toggle('dark');

Why Tailwind CSS v4 is Required

This library uses Tailwind CSS v4 utility classes directly in components (e.g., gap-2, px-4, hover:bg-cyan-400). Your build tool needs Tailwind to process these classes into actual CSS.

Note: This library requires Tailwind v4+. If you're using Tailwind v3, please upgrade to v4.

🧩 Components

Button

import { Button } from '@your-username/my-ui-lib';

<Button variant="primary" size="md">
  Click me
</Button>

Input

import { Input } from '@your-username/my-ui-lib';

<Input placeholder="Enter text" size="md" />

Typography

import { Typo } from '@your-username/my-ui-lib';

<Typo variant="headline-lg" bold="semibold">
  Heading Text
</Typo>

Avatar

import { Avatar, AvatarGroup } from '@your-username/my-ui-lib';

<AvatarGroup max={3}>
  <Avatar name="John Doe" src="/avatar.jpg" />
  <Avatar name="Jane Smith" />
</AvatarGroup>

Autocomplete

import { Autocomplete } from '@your-username/my-ui-lib';

const options = [
  { label: "Option 1", value: "1" },
  { label: "Option 2", value: "2" }
];

<Autocomplete
  title="Select Option"
  options={options}
  selectedOption={selected}
  onSelect={setSelected}
/>

🎨 Design Tokens

The library uses a comprehensive design token system:

  • Colors: Brand, semantic colors with dark mode support
  • Typography: Poppins for headings, Roboto for body text
  • Spacing: Consistent spacing scale
  • Border Radius: Configurable border radius values
  • Shadows: Subtle shadow system
  • Motion: Consistent animation timing

📚 Documentation

Visit our Storybook documentation for:

  • Interactive component playground
  • Design system guidelines
  • Usage examples
  • Accessibility information

🤝 Contributing

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

📄 License

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

🙏 Acknowledgments