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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@brianasmithai/design-system

v0.1.6

Published

A calm, dense, utility-focused design system built on React, Tailwind CSS, and Radix UI primitives

Readme

@brianasmithai/design-system

A calm, dense, utility-focused design system built on React, Tailwind CSS, and Radix UI primitives.

Design Language

All signal, no noise. This design system prioritizes content over chrome. Interfaces are dense but breathable—tight enough to maximize information on screen, loose enough to remain scannable and touch-friendly. The visual language is calm and utilitarian: neutral backgrounds recede so data can lead, while a single accent color appears sparingly to guide attention toward actions and status. Dark mode is the canonical experience.

Every element must earn its place. Color conveys meaning, not decoration. Motion provides feedback, not flourish. Layouts are predictable so users build spatial memory. Accessibility is foundational—keyboard navigation, screen reader support, and sufficient contrast are non-negotiable defaults, not afterthoughts. The system serves internal tools, dashboards, and data-driven applications where efficiency and clarity matter more than delight.


Installation

pnpm add @brianasmithai/design-system

Or with npm:

npm install @brianasmithai/design-system

Setup

1. Import the styles

In your app's entry point (e.g., main.tsx or App.tsx):

import '@brianasmithai/design-system/styles.css';

2. Configure Tailwind to scan the package

The design system uses Tailwind CSS classes. You must tell Tailwind to scan the package so it generates the necessary CSS.

Tailwind v4 (CSS-based config):

Add this to your main CSS file:

@import "tailwindcss";
@source "../node_modules/@brianasmithai/design-system/dist";

Tailwind v3 (JS config):

Add the package to your tailwind.config.js:

export default {
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/@brianasmithai/design-system/dist/**/*.{js,mjs}',
  ],
  // ...
};

3. Use components

import { Button, Card, CardHeader, CardTitle, CardContent, Badge } from '@brianasmithai/design-system';

export function MyComponent() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Dashboard</CardTitle>
      </CardHeader>
      <CardContent>
        <Badge variant="success">Active</Badge>
        <Button>Click me</Button>
      </CardContent>
    </Card>
  );
}

Available Components

The package exports 23 components:

| Component | Description | |-----------|-------------| | Alert | Informational banners with title and description | | Avatar | User profile images with fallback support | | Badge | Status indicators and labels (default, secondary, destructive, outline, success, warning) | | Button | Clickable actions with multiple variants | | Card | Container for grouped content | | Checkbox | Boolean input control | | Dialog | Modal overlays for focused interactions | | Drawer | Slide-out panel (mobile-friendly) | | DropdownMenu | Contextual action menus | | Input | Text input fields | | Label | Form field labels with accessibility | | Popover | Floating content panels | | RadioGroup | Single-selection option groups | | ScrollArea | Custom scrollable containers | | Select | Dropdown selection inputs | | Separator | Visual dividers | | Sheet | Side panel overlays | | Skeleton | Loading placeholder animations | | Toaster | Toast notifications (via Sonner) | | Table | Data display in rows and columns | | Tabs | Tabbed content navigation | | Textarea | Multi-line text input | | Tooltip | Contextual hover information |

Utilities

The package also exports the cn() utility function for merging Tailwind classes:

import { cn } from '@brianasmithai/design-system';

<div className={cn('p-4', isActive && 'bg-primary')} />

Theming

The design system uses CSS custom properties for theming, supporting both light and dark modes. Colors are defined in the OKLCH color space for perceptual uniformity.

Key Design Tokens

| Token | Purpose | |-------|---------| | --background / --foreground | Base page colors | | --surface / --surface-foreground | Card and elevated surfaces | | --primary / --primary-foreground | Primary actions | | --secondary / --secondary-foreground | Secondary elements | | --muted / --muted-foreground | Subdued content | | --success / --success-foreground | Success states | | --warning / --warning-foreground | Warning states | | --destructive / --destructive-foreground | Error/danger states | | --border / --input / --ring | Interactive boundaries |

Typography Utilities

The system provides semantic typography classes:

  • text-headline — Page headings (28px, semibold)
  • text-title — Section titles (20px, semibold)
  • text-subtitle — Subtitles (16px, regular)
  • text-body — Body text (15px, regular)
  • text-body-small — Secondary text (14px, regular)
  • text-label — Form labels (14px, medium)
  • text-code — Monospace code (14px)

Radius Tokens

  • rounded-control — Buttons, inputs, small interactive elements
  • rounded-surface — Cards, dialogs, larger containers
  • rounded-full — Avatars, pills, circular elements

Tech Stack

  • React 18/19 with TypeScript
  • Tailwind CSS 4 for utility-first styling
  • Radix UI primitives for accessibility
  • class-variance-authority for variant management

Development

To work on the design system itself:

# Clone the repo
git clone https://github.com/brianasmithai/design-system.git
cd design-system

# Install dependencies
pnpm install

# Start development server (playground)
pnpm dev

# Build the library for publishing
pnpm build:lib

# Run linter
pnpm lint

Release & Publish Pipeline

  1. Push a semver tag (e.g., git tag v1.2.3 && git push origin v1.2.3). The tag must match the v* pattern to trigger Create Release.
  2. The Create Release workflow builds release notes via softprops/action-gh-release.
  3. After that workflow finishes successfully, the Publish to npm workflow runs via workflow_run, checks out the exact released commit (github.event.workflow_run.head_sha), and publishes to npm using Trusted Publisher provenance.

Dry-run verification

For a rehearsal, push a disposable tag such as v1.2.3-rc.0 to the repository. Confirm both workflows complete, then delete the test release and tag (git push origin :refs/tags/v1.2.3-rc.0) to avoid polluting the release history.

Project Structure

src/
├── index.ts             # Package entry point (exports all components)
├── index.css            # Theme CSS (published as styles.css)
├── App.tsx              # Development playground
├── components/
│   └── ui/              # Component library
│       ├── index.ts     # Barrel export
│       ├── button.tsx
│       ├── card.tsx
│       └── ...
└── lib/
    └── utils.ts         # Utility functions

License

MIT