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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ars-design/bauhaus-ui

v0.1.3

Published

Minimalist React component library inspired by the Bauhaus design school

Readme

Bauhaus UI

A minimalist React component library inspired by the Bauhaus design school. Clean, functional, and beautiful.

License: MIT React

Features

  • ⚛️ React 19 components
  • 🎨 Bauhaus-inspired design system
  • 📦 Tree-shakeable ESM/UMD builds
  • 🎯 CSS Modules with scoped styles
  • 📚 Fully documented with Storybook
  • 🚀 Built with Vite

Installation

npm install @ars-design/bauhaus-ui

Quick Start

import { Button, Card, RowCard } from '@ars-design/bauhaus-ui';
import '@ars-design/bauhaus-ui/styles';

function App() {
  return (
    <Card shadow hoverable>
      <h2>Hello Bauhaus</h2>
      <Button variant="solid" color="blue" onClick={() => alert('Click!')}>
        Click Me
      </Button>
    </Card>
  );
}

Components

Button

Versatile button component with multiple variants and colors.

// Variants: solid, outline, text
// Colors: blue, red, yellow, green, orange, purple
// Sizes: small, medium, large

<Button variant="solid" color="blue" size="medium">
  Primary Action
</Button>

<Button variant="outline" color="red" size="small">
  Secondary Action
</Button>

<Button variant="text" color="green" disabled>
  Disabled
</Button>

<Button variant="solid" color="yellow" fullWidth>
  Full Width Button
</Button>

Props:

  • variant: 'solid' | 'outline' | 'text' (default: 'solid')
  • color: 'blue' | 'red' | 'yellow' | 'green' | 'orange' | 'purple' (default: 'blue')
  • size: 'small' | 'medium' | 'large' (default: 'medium')
  • disabled: boolean (default: false)
  • fullWidth: boolean (default: false)
  • type: 'button' | 'submit' | 'reset' (default: 'button')
  • onClick: () => void

Card

Container component for grouping related content. Features Bauhaus-style bold borders.

<Card shadow hoverable>
  <h3>Card Title</h3>
  <p>Card content goes here</p>
</Card>

Props:

  • shadow: boolean - Adds shadow (default: false)
  • hoverable: boolean - Hover effect (default: false)
  • onClick: () => void - Makes card clickable

RowCard

Horizontal card layout ideal for list items and side-by-side content.

<RowCard shadow hoverable>
  {/* Horizontal layout content */}
</RowCard>

Props:

  • shadow: boolean - Adds shadow (default: false)
  • hoverable: boolean - Hover effect (default: false)
  • onClick: () => void - Makes card clickable

Design System

Colors

All components use a consistent color palette based on Bauhaus principles:

--bauhaus-blue: #0063C2    /* Primary */
--bauhaus-red: #CD3F2A     /* Danger/Error */
--bauhaus-yellow: #F9B700  /* Warning */
--bauhaus-green: #06A77D   /* Success */
--bauhaus-orange: #FF6B35  /* Accent */
--bauhaus-purple: #7209B7  /* Accent */

Spacing

--space-xs: 4px
--space-sm: 8px
--space-md: 16px
--space-lg: 24px
--space-xl: 32px

Typography

--font-size-xs: 12px
--font-size-sm: 14px
--font-size-md: 16px
--font-size-lg: 20px
--font-weight-normal: 400
--font-weight-medium: 500
--font-weight-bold: 700

All design tokens are available in src/styles/variables.css.

Development

Setup

# Install dependencies
npm install

# Start Storybook
npm run storybook

# Build library
npm run build

# Preview build
npm run preview

Creating a New Component

  1. Create component directory:
src/components/MyComponent/
├── MyComponent.jsx
├── MyComponent.module.css
├── MyComponent.stories.jsx
└── index.js
  1. Export from src/index.js:
export { MyComponent } from './components/MyComponent';
  1. View in Storybook at http://localhost:6006

See CREAR-COMPONENTE.md for detailed guide.

Publishing

# Build library
npm run build

# Publish to npm
npm publish

Project Structure

bauhaus-ui/
├── src/
│   ├── components/       # React components
│   │   ├── Button/
│   │   ├── Card/
│   │   └── RowCard/
│   ├── styles/           # Global styles & variables
│   │   ├── variables.css
│   │   └── global.css
│   └── index.js          # Main entry point
├── dist/                 # Build output
├── package.json
└── vite.config.js        # Build configuration

Design Philosophy

Bauhaus UI follows the principles of the Bauhaus design school:

  • Form Follows Function - No unnecessary decorations
  • Simple Geometry - Basic shapes and clean lines
  • Primary Colors - Red, blue, yellow + neutrals
  • Sans-serif Typography - Clean and legible
  • Grid Systems - Structured layouts

Browser Support

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

License

MIT © [Your Name]


Made with ❤️ as a portfolio project