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

@ars-design/bauhaus-ui

v0.2.1

Published

Minimalist React component library inspired by the Bauhaus design school

Readme

Bauhaus UI

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

License: MIT React TypeScript

Features

  • ⚛️ React 19 + TypeScript components
  • 🎨 Bauhaus-inspired design system
  • 📦 Tree-shakeable ESM builds
  • 🎯 CSS Modules with BEM methodology
  • 🎛️ Customizable via CSS variables (--bh-* prefix)
  • 📚 Fully documented with Storybook
  • 🚀 Built with Vite

Installation

npm install @ars-design/bauhaus-ui

Quick Start

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

function App() {
  return (
    <VerticalTitleCard 
      title="Welcome" 
      buttonText="Get Started"
      onButtonClick={() => console.log('Clicked!')}
    >
      <p>Hello Bauhaus!</p>
    </VerticalTitleCard>
  );
}

Components

Button

Versatile button with Bauhaus-style thick borders and 3D hover effect.

<Button variant="solid" color="blue" size="medium" onClick={(e) => console.log(e)}>
  Primary Action
</Button>

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

<Button variant="text" color="green" fullWidth>
  Full Width
</Button>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'solid' \| 'outline' \| 'text' | 'solid' | Button style | | color | 'blue' \| 'red' \| 'yellow' \| 'green' \| 'orange' \| 'purple' | 'blue' | Button color | | size | 'small' \| 'medium' \| 'large' | 'medium' | Button size | | disabled | boolean | false | Disabled state | | fullWidth | boolean | false | 100% width | | className | string | '' | Custom CSS class | | onClick | (event: MouseEvent) => void | - | Click handler |


Input

Text input with underline focus effect.

<Input 
  label="Email" 
  type="email" 
  placeholder="[email protected]"
  error="Invalid email"
  fullWidth
/>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | label | ReactNode | - | Label text | | size | 'small' \| 'medium' \| 'large' | 'medium' | Input size | | error | ReactNode | - | Error message | | fullWidth | boolean | false | 100% width | | disabled | boolean | false | Disabled state | | className | string | '' | Custom CSS class |


Checkbox

Checkbox with diamond indicator when checked.

<Checkbox 
  label="Subscribe to newsletter"
  onCheckedChange={(checked) => console.log(checked)}
/>

// Or with full event
<Checkbox 
  label="Accept terms"
  onChange={(e) => console.log(e.target.checked)}
/>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | label | ReactNode | - | Label text | | size | 'small' \| 'medium' \| 'large' | 'medium' | Checkbox size | | checked | boolean | - | Controlled state | | defaultChecked | boolean | - | Uncontrolled default | | onCheckedChange | (checked: boolean) => void | - | Simple change handler | | onChange | (event: ChangeEvent) => void | - | Full event handler | | disabled | boolean | false | Disabled state |


Dropdown

Dropdown menu with keyboard navigation (↑↓, Enter, Escape).

<Dropdown 
  label="Actions"
  size="medium"
  items={[
    { label: 'Edit', onClick: () => console.log('Edit') },
    { label: 'Delete', onClick: () => console.log('Delete'), disabled: true },
  ]}
/>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | label | ReactNode | 'Options' | Trigger text | | items | DropdownItem[] | [] | Menu items | | size | 'small' \| 'medium' \| 'large' | 'medium' | Dropdown size | | disabled | boolean | false | Disabled state |


VerticalTitleCard

Card with vertical rotated title, colored accents, and integrated button.

<VerticalTitleCard 
  title="Card Title"
  buttonText="Action"
  buttonColor="blue"
  buttonVariant="solid"
  onButtonClick={() => console.log('Clicked!')}
  tail={true}
>
  <p>Card content</p>
</VerticalTitleCard>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | title | string | required | Vertical title text | | icon | ReactNode | - | Icon (replaces blue accent) | | tail | boolean | true | Show yellow tail accent | | buttonVariant | 'solid' \| 'outline' \| 'text' \| 'none' | 'solid' | Button style | | buttonText | string | 'Action' | Button text | | buttonColor | Color | 'blue' | Button color | | onButtonClick | () => void | - | Button click handler | | buttonFill | boolean | false | Full width button | | minHeight | string \| number | '300px' | Minimum height | | minWidth | string \| number | '400px' | Minimum width |


HorizontalImageCard

Card with image on left, content on right, and yellow tail accent.

<HorizontalImageCard 
  imageSrc="/path/to/image.jpg"
  title="Card Title"
  subtitle="Subtitle text"
  buttonText="Learn More"
  onButtonClick={() => console.log('Clicked!')}
/>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | imageSrc | string | required | Image URL | | title | string | required | Card title | | subtitle | string | - | Card subtitle | | imageAlt | string | '' | Image alt text | | tail | boolean | true | Show yellow tail accent | | buttonVariant | 'solid' \| 'outline' \| 'text' \| 'none' | 'solid' | Button style | | buttonText | string | 'Action' | Button text | | buttonColor | Color | 'blue' | Button color | | onButtonClick | () => void | - | Button click handler | | buttonFill | boolean | false | Full width button | | minHeight | string \| number | '300px' | Minimum height | | minWidth | string \| number | '500px' | Minimum width |


VerticalImageCard

Card with image on top, content below, and yellow tail accent.

<VerticalImageCard
  imageSrc="/path/to/image.jpg"
  title="Card Title"
  subtitle="Subtitle text"
  buttonText="Action"
  onButtonClick={() => console.log('Clicked!')}
  imageHeight="40%"
/>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | imageSrc | string | required | Image URL | | title | string | - | Card title | | subtitle | string | - | Card subtitle | | imageAlt | string | '' | Image alt text | | imageHeight | string \| number | '40%' | Image height | | tail | boolean | true | Show yellow tail accent | | buttonVariant | 'solid' \| 'outline' \| 'text' \| 'none' | 'solid' | Button style | | buttonText | string | 'Action' | Button text | | buttonColor | Color | 'blue' | Button color | | onButtonClick | () => void | - | Button click handler | | buttonFill | boolean | false | Full width button | | minHeight | string \| number | '400px' | Minimum height | | minWidth | string \| number | '300px' | Minimum width |


Card

Card with Bauhaus-style accents: top blue accent, red divider, optional subtitle/children and optional tail.

<Card
  title="Card Title"
  subtitle="Subtitle text"
  buttonText="Action"
  onButtonClick={() => console.log('Clicked!')}
>
  <p>Optional extra content (children)</p>
</Card>

Props: | Prop | Type | Default | Description | |------|------|---------|-------------| | title | string | - | Card title | | subtitle | string | - | Card subtitle | | children | ReactNode | - | Optional extra content | | tail | boolean | true | Show yellow tail accent | | buttonVariant | 'solid' \| 'outline' \| 'text' \| 'none' | 'solid' | Button style | | buttonText | string | 'Action' | Button text | | buttonColor | Color | 'blue' | Button color | | onButtonClick | () => void | - | Button click handler | | buttonFill | boolean | false | Full width button | | minHeight | string \| number | '300px' | Minimum height | | minWidth | string \| number | '400px' | Minimum width |


Design System

CSS Variables

All variables use the --bh- prefix to avoid collisions with your project:

Colors (no prefix - Bauhaus identity)

--bauhaus-blue: #0063C2
--bauhaus-red: #CD3F2A
--bauhaus-yellow: #F9B700
--bauhaus-green: #06A77D
--bauhaus-orange: #FF6B35
--bauhaus-purple: #7209B7
--bauhaus-black: #000000
--bauhaus-white: #FFFFFF

Spacing

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

Typography

--bh-font-size-xs: 12px
--bh-font-size-sm: 14px
--bh-font-size-md: 16px
--bh-font-size-lg: 20px
--bh-font-size-xl: 24px

--bh-font-weight-normal: 400
--bh-font-weight-medium: 500
--bh-font-weight-bold: 700

Borders

--bh-border-width: 1px
--bh-border-width-thick: 2px
--bh-border-card: 8px solid var(--bauhaus-black)
--bh-border-accent: 6px
--bh-btn-border-width: 3px

Transitions

--bh-transition-fast: 150ms ease-in-out
--bh-transition-normal: 250ms ease-in-out

Customization

Override variables in your CSS:

:root {
  /* Change primary blue */
  --bauhaus-blue: #0066FF;
  
  /* Adjust spacing */
  --bh-space-md: 20px;
  
  /* Thicker borders */
  --bh-btn-border-width: 4px;
}

Development

Setup

# Install dependencies
npm install

# Start Storybook
npm run storybook

# Build library
npm run build

Project Structure

bauhaus-ui/
├── src/
│   ├── components/
│   │   ├── Button/
│   │   │   ├── Button.tsx
│   │   │   ├── Button.module.css
│   │   │   ├── Button.stories.tsx
│   │   │   └── index.ts
│   │   ├── Input/
│   │   ├── Checkbox/
│   │   ├── Dropdown/
│   │   ├── VerticalTitleCard/
│   │   ├── HorizontalImageCard/
│   │   ├── VerticalImageCard/
│   │   ├── Card/
│   │   └── Toggle/
│   ├── styles/
│   │   ├── variables.css
│   │   └── global.css
│   ├── types/
│   │   └── index.ts
│   └── index.ts
├── dist/
├── package.json
├── tsconfig.json
└── vite.config.ts

Creating a New Component

  1. Create component directory:
src/components/MyComponent/
├── MyComponent.tsx
├── MyComponent.module.css
├── MyComponent.stories.tsx
└── index.ts
  1. Follow BEM methodology for CSS classes:
.bh-my-component { }
.bh-my-component__element { }
.bh-my-component--modifier { }
  1. Export from src/index.ts:
export { MyComponent } from './components/MyComponent';
export type { MyComponentProps } from './components/MyComponent';

TypeScript Support

All components are fully typed. Import types:

import type { 
  ButtonProps, 
  InputProps, 
  CheckboxProps,
  DropdownProps,
  VerticalTitleCardProps,
  HorizontalImageCardProps,
  Size,
  Color,
  ButtonVariant,
} from '@ars-design/bauhaus-ui';

Design Philosophy

Bauhaus UI follows the principles of the Bauhaus design school:

  • Form Follows Function - No unnecessary decorations
  • Simple Geometry - Basic shapes, sharp corners, bold lines
  • Primary Colors - Red, blue, yellow + neutrals
  • Thick Borders - 8px card borders, 3px button borders
  • Visual Accents - Colored bars (yellow tail, red divider, blue accent)

Browser Support

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

Contact

Questions, feedback, or collaboration?

Instagram


License

MIT © ars-design


Made with ❤️ inspired by Bauhaus design principles