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

@f0rbit/ui

v0.1.9

Published

A minimal, composable UI component library for SolidJS

Readme

@f0rbit/ui

A minimal, composable UI component library for SolidJS.

Philosophy

This library is built on a few core principles:

  • Minimalism over features - Ship only what's needed. No bloated dependencies, no unnecessary abstractions.
  • CSS-first styling - Components are styled via CSS classes and custom properties, not runtime style objects. This enables layered customization through CSS cascade.
  • Composable architecture - Components like Card, Modal, and Dropdown are built from smaller primitives (CardHeader, CardTitle, ModalBody, etc.) that can be mixed and matched.
  • Semantic markup - Components render sensible HTML elements with proper accessibility attributes (ARIA labels, keyboard handling).
  • Zero runtime styling dependencies - Styles ship as plain CSS. No CSS-in-JS, no build-time extraction magic.

Installation

bun add @f0rbit/ui solid-js

Usage

Import components and styles:

import { Button, Card, CardHeader, CardTitle, CardContent } from "@f0rbit/ui";
import "@f0rbit/ui/styles";

Use in your SolidJS app:

function App() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Hello World</CardTitle>
      </CardHeader>
      <CardContent>
        <Button variant="primary">Click me</Button>
      </CardContent>
    </Card>
  );
}

CSS Imports

Import all styles at once:

@import "@f0rbit/ui/styles";

Or import layers individually for finer control:

@import "@f0rbit/ui/styles/tokens";     /* Design tokens (colors, spacing, typography) */
@import "@f0rbit/ui/styles/reset";      /* CSS reset */
@import "@f0rbit/ui/styles/utilities";  /* Layout utilities (.stack, .row, .grid, etc.) */
@import "@f0rbit/ui/styles/components"; /* Component styles */

Customization

Override design tokens via CSS custom properties:

:root {
  --accent: oklch(60% 0.15 250);
  --radius: 0.5rem;
  --space-md: 1rem;
}

Dark mode is automatic via prefers-color-scheme: dark.

Components

| Component | Description | |-----------|-------------| | Button | Primary, secondary, ghost, and danger variants with size options | | Badge | Status indicators with semantic variants (success, error, warning, info) | | Card | Container with optional header, content, footer, and interactive state | | Input, Textarea, Select | Form inputs with error states | | Modal | Dialog overlay with header, body, footer composition | | Dropdown | Menu trigger with items and keyboard support | | Status | Dot indicator with state labels (active, inactive, error, pending) | | Stat | Value + label display for metrics | | Spinner | Loading indicator in three sizes | | Chevron | Directional icon with rotation states | | Empty | Empty state placeholder with icon, title, description | | Clamp | Text truncation with expand/collapse toggle | | Collapsible | Expandable content sections | | Stepper | Multi-step progress indicator (horizontal/vertical) |

Project Structure

src/
├── components/       # SolidJS components (.tsx)
│   ├── Button.tsx
│   ├── Card.tsx
│   ├── Modal.tsx
│   └── ...
├── styles/           # CSS source files
│   ├── tokens.css    # Design tokens (colors, spacing, typography)
│   ├── reset.css     # Modern CSS reset
│   ├── utilities.css # Layout primitives (.stack, .row, .grid)
│   └── components.css# Component-specific styles
└── index.tsx         # Public exports

docs/                 # Astro + Starlight documentation site
scripts/
├── build-css.js      # Concatenates CSS with layer ordering
└── generate-llm-docs.js  # Generates LLM-friendly documentation

Development

# Install dependencies
bun install

# Build library
bun run build

# Watch mode
bun run dev

# Run documentation site
bun run docs

# Type check
bun run typecheck

Coding Style

  • TypeScript strict mode - All components are fully typed with exported prop interfaces
  • SolidJS patterns - Uses splitProps() for prop separation, createSignal() for local state
  • CSS Layers - Styles organized into @layer reset, tokens, components, utilities for predictable cascade
  • OKLCH colors - Modern color space with automatic dark mode support
  • Semantic class names - .btn, .card, .modal etc. with BEM-lite modifiers (.btn-primary, .card-interactive)

License

MIT