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

@gadagi/design-system

v1.0.8

Published

Design system for gadagi micro-frontends

Readme

@gadagi/design-system - Design System

A comprehensive design system for the Gadagi platform, providing reusable React components, theme support, and design tokens.

Features

  • 🎨 Design Tokens - Consistent colors, typography, and spacing
  • 🧩 React Components - Pre-built UI components (Button, Input, Badge)
  • 🌓 Theme Support - Built-in light and dark themes
  • 📱 Responsive - Mobile-first design approach
  • WCAG Compliant - Accessible color contrast ratios
  • 🎯 TypeScript - Full type safety
  • 📦 Tree Shakable - Optimized bundle size

Installation

npm install @gadagi/design-system

Peer Dependencies

npm install react react-dom

Quick Start

import { ThemeProvider, Button, Input, Badge } from '@gadagi/design-system';

function App() {
  return (
    <ThemeProvider defaultTheme="light">
      <div>
        <Button variant="primary">Click me</Button>
        <Input placeholder="Enter text" />
        <Badge count={5}>Notifications</Badge>
      </div>
    </ThemeProvider>
  );
}

Theme System

Light Theme

import { ThemeProvider } from '@gadagi/design-system';

<ThemeProvider defaultTheme="light">
  <YourApp />
</ThemeProvider>

Dark Theme

<ThemeProvider defaultTheme="dark">
  <YourApp />
</ThemeProvider>

Custom Theme

import { ThemeProvider, colors } from '@gadagi/design-system';

const customTheme = {
  primary: colors.primary[500],
  background: '#ffffff',
  text: '#000000',
};

<ThemeProvider theme={customTheme}>
  <YourApp />
</ThemeProvider>

Components

Button

import { Button } from '@gadagi/design-system';

<Button variant="primary" size="md" onClick={() => console.log('clicked')}>
  Primary Button
</Button>

<Button variant="danger" size="sm" disabled>
  Disabled Button
</Button>

Props:

  • variant: 'primary' | 'secondary' | 'danger' | 'success'
  • size: 'sm' | 'md' | 'lg'
  • disabled?: boolean
  • onClick?: () => void

Input

import { Input } from '@gadagi/design-system';

<Input 
  placeholder="Enter your email"
  label="Email Address"
  error="Invalid email format"
  hint="We'll never share your email"
  fullWidth
/>

Props:

  • placeholder?: string
  • label?: string
  • error?: string
  • hint?: string
  • fullWidth?: boolean
  • id?: string

Badge

import { Badge } from '@gadagi/design-system';

<Badge count={5}>
  <span>Notifications</span>
</Badge>

<Badge count={99} variant="danger">
  <span>Alerts</span>
</Badge>

Props:

  • count: number
  • variant?: 'primary' | 'danger' | 'success'
  • children?: ReactNode

Design Tokens

Colors

import { colors, darkColors } from '@gadagi/design-system';

// Light theme colors
colors.primary[500]  // #4a3fb5
colors.success[500]  // #2fb855
colors.danger[500]   // #dc4c4c

// Dark theme colors
darkColors.primary[500]  // #7c71e6
darkColors.success[500]  // #4ade80
darkColors.danger[500]   // #f87171

Typography

import { typography } from '@gadagi/design-system';

typography.fontSize.sm   // 14px
typography.fontSize.md   // 16px
typography.fontSize.lg   // 18px
typography.fontWeight.medium  // 500

Spacing

import { spacing } from '@gadagi/design-system';

spacing[1]  // 4px
spacing[2]  // 8px
spacing[4]  // 16px
spacing[8]  // 32px

Accessibility

All components are built with WCAG 2.1 AA compliance in mind:

  • Color Contrast: All text and UI elements meet 4.5:1 contrast ratios
  • Keyboard Navigation: Full keyboard support for all interactive elements
  • Screen Readers: Proper ARIA labels and semantic HTML
  • Focus Management: Clear focus indicators and logical tab order

Browser Support

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

Contributing

  1. Clone the repository
  2. Install dependencies: npm install
  3. Start development: npm run dev
  4. Make your changes
  5. Run tests: npm test
  6. Build: npm run build
  7. Publish: npm publish

License

MIT © Gadagi Team

Changelog

See CHANGELOG.md for version history and updates.