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

tuimorphic

v0.1.0

Published

Terminal-aesthetic React components built on Base UI with SRCL styling

Readme

Tuimorphic

Terminal-aesthetic React components built on Base UI with styling inspired by SRCL/Sacred Computer.

Features

  • 37 accessible components built on Base UI primitives
  • Light/dark themes with 7 color tints
  • Terminal aesthetic with box-drawing characters and monospace typography
  • TypeScript-first with full type definitions
  • SCSS Modules for scoped, customizable styling
  • GNU Unifont monospace font included
  • React Server Components compatible ('use client' directives)
  • WAI-ARIA compliant with full keyboard navigation

Installation

npm install tuimorphic
# or
pnpm add tuimorphic
# or
yarn add tuimorphic

Peer Dependencies

npm install react react-dom

Quick Start

import { Button, Card, Input, Badge } from 'tuimorphic';
import 'tuimorphic/dist/styles.css';

export default function App() {
  return (
    <Card title="LOGIN">
      <Input label="USERNAME" placeholder="Enter username" />
      <Input label="PASSWORD" type="password" placeholder="Enter password" />
      <Button variant="primary">Submit</Button>
      <Badge variant="success">Online</Badge>
    </Card>
  );
}

Theming

Light/Dark Mode

Apply theme classes to the body element:

// Dark theme (default)
document.body.className = 'theme-dark';

// Light theme
document.body.className = 'theme-light';

Color Tints

Add accent color tints alongside your theme:

// Dark theme with green accent
document.body.className = 'theme-dark tint-green';

Available tints: tint-green, tint-blue, tint-red, tint-yellow, tint-purple, tint-orange, tint-pink

CSS Custom Properties

Override theme tokens in your CSS:

:root {
  --theme-background: #000000;
  --theme-text: #ffffff;
  --theme-border: #404040;
  --theme-accent: oklch(0.65 0.2 145);
  --font-family-mono: 'Unifont', monospace;
}

Components

Form Controls

| Component | Description | |-----------|-------------| | Button | Primary action button with variants | | Input | Text input with label support | | TextArea | Multi-line text input | | Checkbox | Checkbox with label | | RadioGroup | Radio button group | | Toggle | Toggle switch | | Select | Dropdown select | | ComboBox | Searchable combobox | | DatePicker | Date selection input | | Slider | Range slider |

Feedback

| Component | Description | |-----------|-------------| | Alert | Alert messages with variants | | Badge | Status badges | | Progress | Progress indicator | | Tooltip | Hover tooltips | | BarLoader | Animated bar loader | | BlockLoader | Block-style loader |

Overlays

| Component | Description | |-----------|-------------| | Dialog | Modal dialog | | Drawer | Slide-out drawer panel | | Menu | Dropdown menu | | Popover | Popover with positioning |

Layout

| Component | Description | |-----------|-------------| | Card | Content card with title | | CardDouble | Two-column card layout | | Divider | Horizontal/vertical divider | | Grid | CSS grid wrapper | | Tabs | Tab navigation | | Accordion | Expandable sections | | Table | Data table | | SidebarLayout | Sidebar page layout |

Data Display

| Component | Description | |-----------|-------------| | CodeBlock | Syntax-highlighted code | | TreeView | Hierarchical tree | | Message / MessageList | Chat-style messages | | Avatar | User avatar |

Navigation

| Component | Description | |-----------|-------------| | Navigation | Navigation menu | | BreadCrumbs | Breadcrumb trail | | ActionBar | Action button bar | | ActionButton | Icon action button |

Component Examples

Dialog

import { Dialog, Button } from 'tuimorphic';

function Example() {
  return (
    <Dialog.Root>
      <Dialog.Trigger render={<Button>Open Dialog</Button>} />
      <Dialog.Portal>
        <Dialog.Backdrop />
        <Dialog.Popup>
          <Dialog.Title>Confirm Action</Dialog.Title>
          <Dialog.Description>
            Are you sure you want to proceed?
          </Dialog.Description>
          <Dialog.Close render={<Button>Close</Button>} />
        </Dialog.Popup>
      </Dialog.Portal>
    </Dialog.Root>
  );
}

Tabs

import { Tabs } from 'tuimorphic';

function Example() {
  return (
    <Tabs defaultValue="tab1">
      <Tabs.List>
        <Tabs.Trigger value="tab1">Overview</Tabs.Trigger>
        <Tabs.Trigger value="tab2">Details</Tabs.Trigger>
        <Tabs.Trigger value="tab3">Settings</Tabs.Trigger>
      </Tabs.List>
      <Tabs.Content value="tab1">Overview content here</Tabs.Content>
      <Tabs.Content value="tab2">Details content here</Tabs.Content>
      <Tabs.Content value="tab3">Settings content here</Tabs.Content>
    </Tabs>
  );
}

Accordion

import { Accordion } from 'tuimorphic';

function Example() {
  return (
    <Accordion.Root>
      <Accordion.Item value="item1">
        <Accordion.Header>
          <Accordion.Trigger>Section One</Accordion.Trigger>
        </Accordion.Header>
        <Accordion.Content>Content for section one</Accordion.Content>
      </Accordion.Item>
      <Accordion.Item value="item2">
        <Accordion.Header>
          <Accordion.Trigger>Section Two</Accordion.Trigger>
        </Accordion.Header>
        <Accordion.Content>Content for section two</Accordion.Content>
      </Accordion.Item>
    </Accordion.Root>
  );
}

Table

import { Table } from 'tuimorphic';

function Example() {
  return (
    <Table>
      <Table.Header>
        <Table.Row>
          <Table.Head>Name</Table.Head>
          <Table.Head>Status</Table.Head>
          <Table.Head>Role</Table.Head>
        </Table.Row>
      </Table.Header>
      <Table.Body>
        <Table.Row>
          <Table.Cell>Alice</Table.Cell>
          <Table.Cell>Active</Table.Cell>
          <Table.Cell>Admin</Table.Cell>
        </Table.Row>
        <Table.Row>
          <Table.Cell>Bob</Table.Cell>
          <Table.Cell>Inactive</Table.Cell>
          <Table.Cell>User</Table.Cell>
        </Table.Row>
      </Table.Body>
    </Table>
  );
}

Development

# Install dependencies
pnpm install

# Start dev server
pnpm dev

# Build library
pnpm build

# Build demo app
pnpm build:demo

# Type check
pnpm lint

# Deploy demo to Cloudflare Pages
pnpm deploy

Project Structure

src/
├── components/          # 37 component directories
│   ├── Button/
│   │   ├── Button.tsx
│   │   ├── Button.module.scss
│   │   └── index.ts
│   └── ...
├── styles/
│   └── global.css       # Theme tokens and global styles
├── fonts/
│   └── Unifont.woff2    # Monospace font
├── utils/
│   └── classNames.ts    # Class merging utility
├── example/
│   ├── App.tsx          # Demo application
│   └── main.tsx
└── index.ts             # Library exports

TypeScript

All components export their props interfaces:

import { Button, type ButtonProps } from 'tuimorphic';

const CustomButton: React.FC<ButtonProps> = (props) => {
  return <Button {...props} className="custom-styles" />;
};

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Acknowledgments

License

MIT