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

@steward-apps/ui

v1.1.0

Published

React component library for the Steward design system

Readme

@steward-apps/ui

React component library for the Steward design system. Built with Radix UI primitives, Tailwind CSS, and full accessibility support.

Installation

pnpm add @steward-apps/ui @steward-apps/tokens

Setup

1. Import Styles

Add the global styles to your app's root CSS file:

/* app.css or globals.css */
@import "@steward-apps/ui/styles";

Or import the tokens CSS directly and add your own Tailwind setup:

@import "@steward-apps/tokens/dist/tokens.css";
@tailwind base;
@tailwind components;
@tailwind utilities;

2. Configure Tailwind

Extend your Tailwind config with the Steward preset:

// tailwind.config.js
import stewardPreset from "@steward-apps/ui/tailwind.preset";

export default {
  presets: [stewardPreset],
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    // Include @steward-apps/ui components in content
    "./node_modules/@steward-apps/ui/dist/**/*.{js,ts,jsx,tsx}",
  ],
};

Components

Button

import { Button } from "@steward-apps/ui";

<Button variant="primary">Save</Button>
<Button variant="secondary">Cancel</Button>
<Button variant="destructive">Delete</Button>
<Button variant="outline">Edit</Button>
<Button variant="ghost">More</Button>
<Button variant="link">Learn more</Button>

// Sizes
<Button size="sm">Small</Button>
<Button size="md">Medium</Button>
<Button size="lg">Large</Button>

// Loading state
<Button loading>Saving...</Button>

Input & FormField

import { Input, FormField, Label } from "@steward-apps/ui";

// Basic input
<Input placeholder="Enter your name" />

// With FormField wrapper
<FormField
  label="Email"
  htmlFor="email"
  helpText="We'll never share your email"
  error={errors.email}
  required
>
  <Input id="email" type="email" error={!!errors.email} />
</FormField>

Select

import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "@steward-apps/ui";

<Select>
  <SelectTrigger>
    <SelectValue placeholder="Select a role" />
  </SelectTrigger>
  <SelectContent>
    <SelectItem value="admin">Admin</SelectItem>
    <SelectItem value="member">Member</SelectItem>
    <SelectItem value="guest">Guest</SelectItem>
  </SelectContent>
</Select>;

Card

import {
  Card,
  CardHeader,
  CardTitle,
  CardDescription,
  CardContent,
  CardFooter,
} from "@steward-apps/ui";

<Card>
  <CardHeader>
    <CardTitle>Account Settings</CardTitle>
    <CardDescription>Manage your account preferences</CardDescription>
  </CardHeader>
  <CardContent>{/* Form fields */}</CardContent>
  <CardFooter>
    <Button>Save changes</Button>
  </CardFooter>
</Card>;

Badge

import { Badge } from "@steward-apps/ui";

<Badge>Default</Badge>
<Badge variant="success">Active</Badge>
<Badge variant="warning">Pending</Badge>
<Badge variant="danger">Error</Badge>
<Badge variant="outline">Draft</Badge>

Alert

import { Alert, AlertTitle, AlertDescription } from "@steward-apps/ui";

<Alert variant="success" showIcon>
  <AlertTitle>Success!</AlertTitle>
  <AlertDescription>Your changes have been saved.</AlertDescription>
</Alert>

<Alert variant="danger" showIcon>
  <AlertTitle>Error</AlertTitle>
  <AlertDescription>Something went wrong. Please try again.</AlertDescription>
</Alert>

Dialog (Modal)

import {
  Dialog,
  DialogTrigger,
  DialogContent,
  DialogHeader,
  DialogTitle,
  DialogDescription,
  DialogFooter,
} from "@steward-apps/ui";

<Dialog>
  <DialogTrigger asChild>
    <Button>Open Dialog</Button>
  </DialogTrigger>
  <DialogContent>
    <DialogHeader>
      <DialogTitle>Confirm Action</DialogTitle>
      <DialogDescription>Are you sure you want to continue?</DialogDescription>
    </DialogHeader>
    <DialogFooter>
      <Button variant="outline">Cancel</Button>
      <Button>Confirm</Button>
    </DialogFooter>
  </DialogContent>
</Dialog>;

Table

import { Table, TableHeader, TableBody, TableRow, TableHead, TableCell } from "@steward-apps/ui";

<Table>
  <TableHeader>
    <TableRow>
      <TableHead>Name</TableHead>
      <TableHead>Email</TableHead>
      <TableHead>Role</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    <TableRow>
      <TableCell>John Doe</TableCell>
      <TableCell>[email protected]</TableCell>
      <TableCell>Admin</TableCell>
    </TableRow>
  </TableBody>
</Table>;

Tabs

import { Tabs, TabsList, TabsTrigger, TabsContent } from "@steward-apps/ui";

<Tabs defaultValue="general">
  <TabsList>
    <TabsTrigger value="general">General</TabsTrigger>
    <TabsTrigger value="security">Security</TabsTrigger>
  </TabsList>
  <TabsContent value="general">General settings...</TabsContent>
  <TabsContent value="security">Security settings...</TabsContent>
</Tabs>;

Dark Mode

The components automatically support dark mode via CSS variables. Toggle dark mode by adding the dark class to your root element:

// Toggle dark mode
document.documentElement.classList.toggle("dark");

Or use data-theme attribute:

<html data-theme="dark"></html>

Accessibility

All components are built with accessibility in mind:

  • Full keyboard navigation
  • ARIA attributes and roles
  • Focus management
  • Screen reader support

TypeScript

All components are fully typed with TypeScript. Import types directly:

import type { ButtonProps, CardProps, AlertProps } from "@steward-apps/ui";