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

bauhaus-ui-library

v0.1.1

Published

A bold, geometric React component library inspired by the Bauhaus movement.

Readme

Bauhaus UI

A bold, geometric React component library inspired by the Bauhaus movement: primary colors, hard edges, thick black borders, and a relentless grid. 29 components, fully typed, accessible, themeable, with a built-in dark mode.

Form follows function.

Built with React + TypeScript + Tailwind CSS + Vite + Storybook.

Live demo · Storybook


Features

  • 29 components spanning signature geometric primitives, forms, feedback, navigation and overlays.
  • Bauhaus design system. A disciplined palette (red #E63329, blue #21409A, yellow #F4C20D, ink #1C1C1C), geometric sans-serif type (Space Grotesk + Archivo), sharp corners and hard offset shadows.
  • Signature generator. GeometricPattern tessellates deterministic Bauhaus motif grids for heroes and backdrops.
  • Dark mode built in. Flip a single .dark class on <html>; surfaces and ink invert while the primary triad stays vivid.
  • Accessible. Roles, ARIA attributes and keyboard support throughout (tabs, accordion, modal, toast).
  • Themeable. Every surface token is a CSS variable; primaries are Tailwind colors.
  • Tree-shakeable ESM + UMD builds with bundled type declarations.

Installation

npm install bauhaus-ui-library

Import the stylesheet once at your app root:

import 'bauhaus-ui-library/styles.css'

The bundled styles.css is self-contained (it includes the design tokens and every utility the components use), so Tailwind is not required in your app. If you do use Tailwind and want to author your own bred / bblue markup, copy the token definitions from the Theming section below.

Load the fonts (e.g. in your index.html):

<link
  href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap"
  rel="stylesheet"
/>

Usage

import { Button, Card, CardBody, GeometricPattern, useToast, ToastProvider } from 'bauhaus-ui-library'

function App() {
  return (
    <ToastProvider>
      <Card accent="red">
        <GeometricPattern rows={2} cols={6} className="h-24" />
        <CardBody>
          <Button color="red" rightIcon={<span>→</span>}>
            Get started
          </Button>
        </CardBody>
      </Card>
    </ToastProvider>
  )
}

Every component shares a small, predictable API:

  • color: 'red' | 'blue' | 'yellow' | 'ink'
  • size: 'sm' | 'md' | 'lg'
  • variant where it makes sense: 'solid' | 'outline' | 'ghost'

Components

| Group | Components | | ---------------------- | ------------------------------------------------------------------------------------------------ | | Signature | Shape, ShapeLogo, GeometricPattern | | Core | Button, Card (+ CardHeader/CardTitle/CardDescription/CardBody/CardFooter) | | Form | FormField, Input, Textarea, Select, Checkbox, Radio/RadioGroup, Switch, Slider | | Display & feedback | Badge, Tag, Avatar, Alert, Progress, Spinner, Divider, Tooltip | | Navigation | Tabs, Accordion, Navbar, Pagination, Breadcrumb | | Overlay | Modal, Drawer, Toast (ToastProvider + useToast) |

Dark mode

Add the dark class to your root element (the showcase ships a toggle that also respects prefers-color-scheme and persists the choice):

document.documentElement.classList.toggle('dark')

Surfaces (paper, surface) and ink flip; the red / blue / yellow triad stays vivid in both themes.

Theming

Surface and ink tokens are space-separated RGB channels (so Tailwind alpha like bg-ink/10 works). Override them in your own CSS (these are the same variables styles.css already ships):

:root {
  --bui-paper: 250 247 240; /* page background */
  --bui-surface: 255 255 255; /* cards & controls */
  --bui-ink: 28 28 28; /* text, borders, shadows */
}
.dark {
  --bui-paper: 22 20 18;
  --bui-surface: 38 35 31;
  --bui-ink: 243 239 230;
}

For reference, the Tailwind color names the components use are bred, bblue, byellow (each with -dark / -light / -ink steps), plus paper, surface, ink, and the fixed coal / chalk neutrals — all backed by the CSS variables above.

Development

npm install         # install dependencies
npm run dev         # run the showcase site (Vite)
npm run storybook   # component explorer
npm run lint        # ESLint
npm run format      # Prettier (write)
npm run typecheck   # tsc --noEmit
npm test            # Vitest (npm run test:watch to watch)
npm run build       # build the showcase
npm run build:lib   # build the publishable library (dist/)
npm run build-storybook

Design background

This library is a working translation of Bauhaus principles into UI: form follows function, the grid as the silent organizer, the primary triad, and the canonical shape→color mapping (circle→blue, square→red, triangle→yellow). It fills a gap: while neo-brutalism has several React libraries, no installable Bauhaus component system existed.

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md and the Code of Conduct; release notes live in CHANGELOG.md.

License

MIT — see LICENSE.