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

@shawonkanji/core-ui

v1.0.2

Published

A comprehensive React component library built with Tailwind CSS. Features a rich color palette, customizable theming via CSS variables, and a complete set of production-ready components.

Readme

Core UI

A comprehensive React component library built with Tailwind CSS. Features a rich color palette, customizable theming via CSS variables, and a complete set of production-ready components.

Features

  • 🎨 Rich Color Palette - 22 color families with 11 shades each (50-950)
  • 🎯 Semantic Colors - Primary, Secondary, Success, Warning, Error, Info
  • 🔧 Runtime Theming - Customize brand colors via CSS variables
  • 📦 70+ Icons - Built-in SVG icon set
  • 🧱 12+ Components - Layout, Form, Data Display, and Feedback components
  • 📱 Responsive - Mobile-first design approach
  • 🔒 TypeScript - Full type safety with exported types
  • Tree-shakeable - Import only what you need

Installation

pnpm add @shawonkanji/core-ui
# or
npm install @shawonkanji/core-ui
# or
yarn add @shawonkanji/core-ui

Quick Start

  1. Import the CSS in your main entry file:
import '@shawonkanji/core-ui/style.css';
  1. Use components:
import { Button, Input, Card, CardBody, Icon } from '@shawonkanji/core-ui';

function App() {
  return (
    <Card variant="outline">
      <CardBody>
        <Input
          leftElement={<Icon name="search" size="sm" />}
          placeholder="Search..."
        />
        <Button color="primary">
          <Icon name="plus" size="sm" /> Add Item
        </Button>
      </CardBody>
    </Card>
  );
}

Components

Layout

  • Box - Fundamental layout primitive with width, height, padding, margin controls
  • Stack / HStack / VStack - Flexible layouts for arranging items
  • Divider - Visual separators (horizontal/vertical)

Typography

  • Heading - Semantic headings (h1-h6)
  • Text - Text with size, weight, color variants
  • Label - Form labels with required/disabled states
  • Code - Inline code snippets

Form

  • Button - Multiple variants (solid, outline, soft, ghost, link), sizes, colors
  • Input - Text inputs with variants, addons, and icon elements

Data Display

  • Card - Container with Header, Body, Footer sections
  • Badge - Status labels with dot variant
  • Avatar - User images with fallback initials and status indicators
  • AvatarGroup - Stacked avatar display

Feedback

  • Alert - Contextual messages (info, success, warning, error)
  • Spinner - Loading indicators
  • Skeleton - Content loading placeholders

Icons

  • Icon - 70+ SVG icons with size and color variants

Theming

Customize brand colors via CSS variables:

:root {
  /* Primary brand color */
  --color-primary-50: 239 246 255;
  --color-primary-500: 59 130 246;
  --color-primary-600: 37 99 235;
  /* ... all shades 50-950 */

  /* Secondary brand color */
  --color-secondary-50: 245 243 255;
  --color-secondary-500: 139 92 246;
  /* ... */
}

Tailwind Integration

Add Core UI to your Tailwind content for class scanning:

// tailwind.config.js
module.exports = {
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/@shawonkanji/core-ui/dist/**/*.{js,mjs}',
  ],
};

Color Palette

Available colors for component props:

Semantic: primary, secondary, success, warning, error, info

Palette: slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose

Icon Usage

import { Icon, iconNames } from '@shawonkanji/core-ui';

// Basic
<Icon name="check" />
<Icon name="home" size="lg" />
<Icon name="star" strokeWidth={1.5} />

// With colors (inherits text color)
<Icon name="heart" className="text-error-500" />

// List all available icon names
console.log(iconNames);

TypeScript

All components export their prop types:

import {
  Button,
  type ButtonProps,
  type ButtonColor,
  Box,
  type BoxProps,
  Icon,
  type IconName,
} from '@shawonkanji/core-ui';

License

MIT