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

starling-components

v4.0.0

Published

Solid.js component library for Starling City projects.

Readme

Startling Components

An elegant and feature-rich UI component library for Solid.js, meticulously crafted for the Starling City ecosystem. It provides a set of highly accessible, performant, and customizable primitives built with Tailwind CSS and Solid primitives.

Features

  • Fully Accessible: Adheres to WAI-ARIA design patterns with robust keyboard navigation and screen reader support.
  • Performance First: Side-effect free and fully tree-shakable. You only bundle what you use.
  • Modern Aesthetic: Clean, monospace-leaning design system optimized for technical and data-heavy interfaces.
  • Compound Patterns: Flexible API using compound components for maximum layout control.
  • Dark Mode Ready: Built-in support for theme switching and dark-mode aesthetics.
  • Typed: Written in TypeScript with exhaustive JSDoc documentation for a superior developer experience.

Installation

npm install starling-components
# or
bun add starling-components

Peer Dependencies

Ensure you have the following installed in your project:

{
  "peerDependencies": {
    "solid-js": "^1.9.0",
    "tailwindcss": "^4.0.0"
  }
}

Setup

1. Tailwind CSS v4 Configuration

To ensure styles are computed correctly, import the library in your main CSS file. This automatically configures Tailwind to scan the library's components for utility classes and provides default design tokens.

@import "tailwindcss";
@import "starling-components";

Component List

The library includes 41 high-fidelity components:

  • Accordion: Vertically stacked interactive headings.
  • Alert: Important messages for users to acknowledge.
  • AspectRatio: Maintains a specific width/height ratio.
  • Avatar: Visual representation of a user or entity.
  • Badge: Status, category, or count indicator.
  • Breadcrumb: Hierarchical navigation path.
  • Button: Multi-variant interactive element.
  • Calendar: Single, multiple, and range date selection.
  • Card: Content container with consistent padding and borders.
  • Carousel: Image or content slider with navigation.
  • Checkbox: Squircular boolean input.
  • Collapsible: Content that expands/contracts.
  • ColorPicker: Curated presets and custom hex selection.
  • Command: Fast, keyboard-driven command menu with filtering.
  • ContextMenu: Custom right-click interaction menu.
  • DatePicker: Inline or popover-based date selection.
  • DropdownMenu: List of actions triggered by an element.
  • HoverCard: Preview content on hover with a grace period.
  • Input: Mono-styled text field with error handling.
  • Kbd: Visual representation of keyboard shortcuts.
  • Label: Semantic labeling for form controls.
  • Menubar: Desktop-style horizontal navigation.
  • Modal: Accessible dialog overlay with scroll locking.
  • NavigationMenu: Site-wide navigation with rich dropdowns.
  • Pagination: Page navigation controls.
  • Popover: Rich content floating panel.
  • Progress: Status indicator for task completion.
  • RadioGroup: Exclusive choice selector.
  • Resizable: Draggable panels with snap points.
  • ScrollArea: Minimalist, cross-browser custom scrollbars.
  • Select: Accessible dropdown replacement with search.
  • Separator: Visual divider between content blocks.
  • Sheet: Slide-over side panels with scroll locking.
  • Skeleton: Animated loading placeholder.
  • Slider: Visual range input with mono styling.
  • Switch: High-fidelity toggle control.
  • Table: Structured data display with mono alignment.
  • Tabs: Layered sections of content.
  • Textarea: Multi-line text input with vertical resizing.
  • Toast: Fluid, animated notifications.
  • Tooltip: Informative hover messages.

Usage Example

import { createSignal } from "solid-js";
import { Button, Modal } from "starling-components";
import { useTheme } from "starling-components/hooks";

export const MyComponent = () => {
  const [isOpen, setIsOpen] = createSignal(false);
  const { isDark, toggleTheme } = useTheme();

  return (
    <div class="p-8">
      <Button onClick={() => setIsOpen(true)}>Open Modal</Button>

      <Modal
        isOpen={isOpen()}
        onClose={() => setIsOpen(false)}
        title="Settings"
      >
        <div class="p-4 space-y-4">
          <p>Configure your application preferences here.</p>
          <Button onClick={toggleTheme}>
            Switch to {isDark() ? "Light" : "Dark"} Mode
          </Button>
        </div>
      </Modal>
    </div>
  );
};

Design System

Startling Components relies on a specific set of Tailwind CSS variables. Ensure your tailwind.config.js is configured to support the library's aesthetics:

  • Typography: Primarily uses font-mono for data values and inputs.
  • Borders: Consistent border-stroke usage.
  • Overlays: Glassmorphism and subtle shadows for Modal, Sheet, and Popover.

Development

The library uses Biome for linting and formatting, and Tsup for lightning-fast builds.

# Build the library
npm run build

# Run linting
npm run lint

# Format code
npm run fmt

License

MIT