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

@nenad-spaceinch/component-library

v0.3.0

Published

Stand-alone React component library with design system tokens and Figma Code Connect integration

Readme

MA Component Library

Stand-alone React component library with design system tokens and Figma Code Connect integration.

🎯 Overview

This library provides a collection of fully self-contained React components built with:

  • Design Tokens: CSS variable-based theming system
  • Figma Code Connect: Direct integration with Figma design files
  • TypeScript: Full type safety and IntelliSense support
  • Stand-alone Components: No external CSS framework dependencies (Tailwind, etc.)

📦 Installation

npm install @nenad-spaceinch/component-library
# or
yarn add @nenad-spaceinch/component-library
# or
pnpm add @nenad-spaceinch/component-library

Peer Dependencies

{
  "react": "^18.0.0 || ^19.0.0",
  "react-dom": "^18.0.0 || ^19.0.0"
}

🚀 Quick Start

1. Import Styles

Import the design system styles in your app entry point:

// Import design tokens and theme
import '@nenad-spaceinch/component-library/styles/primitives.css';
import '@nenad-spaceinch/component-library/styles/semantics.css';
import '@nenad-spaceinch/component-library/styles/theme';
import '@nenad-spaceinch/component-library/styles/styles.css';

2. Use Components

import { Button, Input, Dropdown, DropdownItem } from '@nenad-spaceinch/component-library';

function App() {
  return (
    <div>
      <Button primary onClick={() => console.log('Clicked!')}>
        Click Me
      </Button>
      
      <Input placeholder="Enter text..." />
      
      <Dropdown width="320px">
        <DropdownItem>Option 1</DropdownItem>
        <DropdownItem>Option 2</DropdownItem>
      </Dropdown>
    </div>
  );
}

📚 Components

Base Components

  • Button - Flexible button with variants (primary, secondary, tertiary), modes (main, inverse, destructive), and sizes
  • Input - Text input with icon support
  • Search - Search input with dropdown integration
  • Checkbox - Checkbox with label and indeterminate state
  • RadioButton - Radio button with label
  • Toggle - Toggle switch with label
  • Dropdown - Dropdown menu with items, headers, footers, and search
  • Table helpers - Compose tables with TableHeaderCell, TableCell, CellItemPlaceholder, and renderTableSchema
  • Tag - Labeled tag with color variants
  • StatusTag - Status indicator tag
  • StatusDot - Status indicator dot
  • Avatar - User avatar with image, initials, and status dot
  • Divider - Horizontal or vertical divider
  • ProgressBar - Progress indicator
  • Breadcrumbs - Navigation breadcrumbs
  • Tab & TabBar - Tabbed navigation
  • FilterSelector - Multi-select filter with tags
  • Counter - Numeric counter badge
  • Logo - Brand logo component

Section Components

  • PageHeader - Complete page header with breadcrumbs, title, and actions
  • Sidebar - Navigation sidebar

🎨 Design System

Tokens

The library uses a three-tier token system:

  1. Primitives (primitives.css) - Raw values (scales, base colors)
  2. Semantics (semantics.css) - Semantic tokens (spacing, sizing, radius)
  3. Theme (theme.ts + themes/*.css) - Color tokens for active theme

Token Prefixes

  • --- (triple-dash): Layout & sizing tokens (spacing, size, radius, weight)
  • -- (double-dash): Color tokens (background, text, border, button)

Typography Classes

  • Headings: heading-[size]-[weight] (e.g., heading-xl-bold)
  • Labels: label-[size] (e.g., label-m)
  • Body: body-[size]-[weight] (e.g., body-m-regular)
  • Paragraphs: paragraph-[size]-[weight] (e.g., paragraph-m-regular)

Elevation Classes

  • Shadow effects: elevation-[size] (e.g., elevation-l)

🎭 Themes

Switch themes by changing the import in styles/theme.ts:

Available themes:

  • grape-crush.css (default)
  • blue-taffy.css
  • neptune-dream.css
  • rock-candy.css

📖 Documentation

Main Implementation Resource: Global Instructions

For detailed guidance on components, tokens, and architecture:

🔗 Figma Code Connect

This library is designed to work with Figma's Code Connect feature. Design components in Figma files are mapped to the corresponding components in this library.

🛠️ Development

# Type checking
npm run type-check

# Build library
npm run build

📄 License

ISC