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

@nimoh-digital-solutions/tast-ui

v1.5.0

Published

UI components and theme system for tast projects

Readme

@nimoh-digital-solutions/tast-ui

Shared React component library for the TAST design system. Ships ready-made, accessible UI primitives styled with SCSS Modules and Open Props tokens.

npm

Installation

npm install @nimoh-digital-solutions/tast-ui
# or
yarn add @nimoh-digital-solutions/tast-ui

Peer dependencies

| Package | Version | |---|---| | react | ^18 \|\| ^19 | | react-dom | ^18 \|\| ^19 | | react-router-dom | ^7 |

Quick start

// 1. Import the stylesheet once (typically in your entry file)
import '@nimoh-digital-solutions/tast-ui/style.css';

// 2. Wrap your app with the ThemeProvider
import { ThemeProvider } from '@nimoh-digital-solutions/tast-ui';

function App() {
  return (
    <ThemeProvider>
      <MyRoutes />
    </ThemeProvider>
  );
}
// 3. Use components anywhere
import { Button, Card, Badge, Spinner } from '@nimoh-digital-solutions/tast-ui';

function Dashboard() {
  return (
    <Card padding="lg" shadow="md">
      <Badge variant="success">Active</Badge>
      <Button onClick={handleClick}>Save changes</Button>
      {isLoading && <Spinner size="sm" />}
    </Card>
  );
}

Components

Layout & surfaces

| Component | Description | Key props | |---|---|---| | Card | Surface container for grouping content | padding (sm | md | lg), shadow (sm | md | lg | xl) | | Modal | Dialog overlay with focus trap | isOpen, onClose, title |

Form controls

| Component | Description | Key props | |---|---|---| | Button | Primary action element with variants | variant, size, disabled, isLoading | | Input | Text input field | size (sm | md | lg), error | | Textarea | Multi-line text input | rows, error |

Feedback & status

| Component | Description | Key props | |---|---|---| | Badge | Status or label indicator | variant (default | success | warning | error | info), size | | Spinner | Loading animation | size (sm | md | lg) | | Toast | Notification message | variant (success | error | warning | info), onDismiss | | Skeleton | Loading placeholder | variant (text | circular | rectangular | rounded), width, height | | EmptyState | Empty data placeholder | title, description, icon, action |

Navigation & data

| Component | Description | Key props | |---|---|---| | Pagination | Page navigation with ellipsis | currentPage, totalPages, onPageChange, pageSize | | ProtectedRoute | Auth guard — renders children or redirects | children, redirectTo |

Error handling

| Component | Description | Key props | |---|---|---| | ErrorBoundary | React error boundary with fallback UI | onError, fallback |

Theme system

The library includes a complete light/dark theme system.

import { ThemeProvider, useTheme } from '@nimoh-digital-solutions/tast-ui';

function ThemeToggle() {
  const { theme, toggleTheme, isDark } = useTheme();

  return (
    <Button onClick={toggleTheme}>
      {isDark ? '☀️ Light' : '🌙 Dark'}
    </Button>
  );
}

Available themes: light, dim, dark

The ThemeProvider persists the user's preference to localStorage and sets a data-theme attribute on <html> for CSS-level theming.

Hooks

| Hook | Returns | Description | |---|---|---| | useTheme() | { theme, toggleTheme, setTheme, isDark, isLight } | Convenience hook for theme state | | useThemeContext() | Full context value | Raw context consumer |

TypeScript

All components export their prop interfaces:

import type { ButtonProps, CardProps, BadgeVariant } from '@nimoh-digital-solutions/tast-ui';

Development

This package lives in the TAST monorepo. To develop locally:

# From the monorepo root
yarn storybook        # Launch Storybook for interactive development
yarn packages:build   # Build all packages including tast-ui

License

MIT