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

nullab-design-system

v0.3.1

Published

A comprehensive design system with React components and Tailwind CSS integration

Downloads

52

Readme

Hi there - here's a breakdown of how to use nullab-design-system in your project.


# nullab-design-system

A comprehensive React design system with Tailwind CSS integration, providing reusable UI components and custom Tailwind utilities and theme extensions.

---

## Installation

Install the package and its peer dependencies in your project:

```bash
npm install nullab-design-system react react-dom
# or
yarn add nullab-design-system react react-dom

Make sure you have Tailwind CSS set up in your consuming project.


Usage

1. Importing Components

You can import and use components directly from nullab-design-system:

import { Button, Combobox, Icon } from 'nullab-design-system';

function App() {
  return (
    <div>
      <Button variant="primary" icon="Plus">
        Add Item
      </Button>
    </div>
  );
}

2. Importing CSS & Tailwind Integration

To use the design system's styles and Tailwind utilities correctly, follow these steps:

a. Import the CSS in your main entry point

Add the following import in your app's entry file (e.g., src/main.tsx or src/index.tsx):

import 'nullab-design-system/styles'; // Imports the compiled design system CSS
import './index.css';                  // Your main Tailwind CSS entry file

b. Setup your Tailwind config to extend design system styles

Extend your consuming project's tailwind.config.js with the design system's Tailwind config:

// tailwind.config.js

const designSystemConfig = require('nullab-design-system/tailwind');

module.exports = {
  ...designSystemConfig,

  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/nullab-design-system/dist/**/*.{js,ts,jsx,tsx}',
    ...designSystemConfig.content,
  ],

  theme: {
    ...designSystemConfig.theme,
    extend: {
      ...designSystemConfig.theme?.extend,
      // Your custom extensions here (optional)
    },
  },

  plugins: [
    ...(designSystemConfig.plugins || []),
    // Your custom plugins here (optional)
  ],
};

c. Your src/index.css should include:

@import "nullab-design-system/styles";

@tailwind base;
@tailwind components;
@tailwind utilities;

This setup imports the design system CSS first, then loads Tailwind base, components, and utilities.


3. Using Tailwind CSS Classes & Design System Theme

The design system provides additional Tailwind theme extensions such as custom colors and fonts.

You can use them directly in your components, for example:

export default function Example() {
  return (
    <div className="h1">
      This div uses design system typography!
    </div>
  );
}

Some theme extensions available:

  • Fonts:

    • font-serif
    • font-sans
    • font-mono
  • Utilities:

    • .h0, .h1, .body, .label, etc., as defined in the design system Tailwind config.

Development

  • Build JavaScript components:

    npm run build:js
  • Build CSS:

    npm run build:css
  • Full build (JS + CSS):

    npm run build

License

MIT License © Nullab Ltd


Support

If you encounter any issues, please open an issue on the repository or contact us at [email protected].