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

chonks-ui

v1.0.2

Published

A retro brutalist design system for power users

Readme

Chonks UI

A retro brutalist design system for power users. Built with simplicity, consistency, and swappable themes in mind.

Chonks UI Preview

Features

  • Retro Brutalist Aesthetic - Sharp corners, offset shadows, and bold borders
  • Swappable Color Palettes - Easily switch between pink, blue, purple, green, and greyscale themes
  • Plain HTML/CSS - Use it without any build tools
  • React Components - Full component library for React apps
  • Monospace Typography - JetBrains Mono for that terminal vibe
  • Zero Dependencies - Pure CSS and React, no bloat
  • Accessibility Features - Focus management, keyboard navigation, and ARIA support
  • Responsive Design - Mobile-first with proper scaling
  • Privacy First - No tracking, no data collection, works offline

Inspiration

Chonks UI is inspired by:

  • Classic terminal interfaces
  • Retro computing aesthetics
  • Brutalist web design
  • The apps in this repo: cutie (pink theme) and bops.to (blue theme)

Installation

CSS Only (Plain HTML/JS)

npm install chonks-ui
<!-- In your HTML -->
<link rel="stylesheet" href="node_modules/chonks-ui/css/chonks.css">
<link rel="stylesheet" href="node_modules/chonks-ui/css/themes/pink.css">

React Components

npm install chonks-ui-react

Note: The React package imports the CSS automatically, so you don't need to install both packages for React projects.

CDN (No Build Tools)

<!DOCTYPE html>
<html>
<head>
    <!-- Main CSS -->
    <link rel="stylesheet" href="https://unpkg.com/chonks-ui@latest/css/chonks.css">
    
    <!-- Pick a theme -->
    <link rel="stylesheet" href="https://unpkg.com/chonks-ui@latest/css/themes/pink.css">
</head>
<body>
    <div class="chonks-container">
        <h1 class="chonks-h1 chonks-display">Hello World</h1>
        <button class="chonks-btn">Click Me</button>
    </div>
</body>
</html>

📖 Getting Started Guide | 🤝 Contributing | 🔒 Security

React Example

npm install chonks-ui-react
import {
  Button,
  Card,
  Terminal,
  useTheme,
  THEMES
} from 'chonks-ui-react'

function App() {
  // Apply theme
  useTheme(THEMES.PINK)

  return (
    <div className="chonks-container">
      <h1 className="chonks-h1 chonks-display">Hello World</h1>
      <Button>Click Me</Button>

      <Card>
        <Terminal title="terminal">
          <pre>npm install chonks-ui-react</pre>
        </Terminal>
      </Card>
    </div>
  )
}

Available Themes

Chonks UI comes with 5 pre-built color themes:

  • Pink (themes/pink.css) - Inspired by the cutie app
  • Blue (themes/blue.css) - Inspired by bops.to
  • Purple (themes/purple.css) - A vibrant purple scheme
  • Green (themes/green.css) - A fresh green scheme
  • Greyscale (themes/greyscale.css) - Classic monochrome aesthetic

Switching Themes

Plain HTML/CSS:

<!-- Just change the theme CSS import -->
<link rel="stylesheet" href="path/to/themes/blue.css">

React:

import { useTheme, THEMES } from 'chonks-ui-react'

function App() {
  const [theme, setTheme] = useState(THEMES.PINK)
  useTheme(theme)

  return (
    <button onClick={() => setTheme(THEMES.BLUE)}>
      Switch to Blue
    </button>
  )
}

Components

Available Components

HTML/CSS Classes

  • .chonks-btn - Buttons
  • .chonks-card - Cards/Windows
  • .chonks-terminal - Terminal/Code blocks
  • .chonks-input - Text inputs
  • .chonks-select - Dropdown selects
  • .chonks-checkbox - Checkboxes
  • .chonks-radio - Radio buttons
  • .chonks-badge - Badges
  • .chonks-spinner - Loading spinners
  • .chonks-alert - Alert messages

React Components

  • <Button /> - Interactive buttons
  • <Card />, <CardHeader />, <CardBody />, <CardFooter /> - Card layouts
  • <Terminal />, <Code /> - Terminal and code display
  • <Input />, <Textarea />, <InputGroup />, <Label /> - Text inputs
  • <Select /> - Dropdown selects
  • <Checkbox />, <CheckboxGroup /> - Checkboxes
  • <Radio />, <RadioGroup /> - Radio buttons
  • <Badge /> - Status badges
  • <Spinner />, <Loading /> - Loading states
  • <Alert /> - Notifications
  • <WindowControls /> - macOS-style window controls

CSS-Only Components

  • Modal dialogs with backdrop and focus management
  • Toast notifications with auto-dismiss
  • Tabbed interfaces with keyboard navigation
  • Tooltips with positioning variants
  • Progress bars with determinate/indeterminate modes
  • Skeleton loaders for content placeholders

Typography

Chonks UI uses three font families:

  • Inter - Body text (sans-serif)
  • Geist - Display text (sans-serif)
  • JetBrains Mono - Code and monospace text

Font classes:

  • .chonks-display - Display text (uppercase, bold, mono)
  • .chonks-mono - Monospace text
  • .chonks-h1, .chonks-h2, .chonks-h3, .chonks-h4 - Headings
  • .chonks-text-sm, .chonks-text-base, .chonks-text-lg, .chonks-text-xl - Text sizes

Design Tokens

All colors and styles are controlled via CSS custom properties:

:root {
  /* Primary Colors */
  --chonks-primary: #87CEEB;
  --chonks-primary-dark: #4682B4;
  --chonks-primary-light: #B0E0E6;

  /* Neutral Colors */
  --chonks-surface: #FFFFFF;
  --chonks-background: #F8FAFB;
  --chonks-text: #2C3E50;

  /* Spacing */
  --chonks-space-xs: 4px;
  --chonks-space-sm: 8px;
  --chonks-space-md: 16px;
  --chonks-space-lg: 24px;
  --chonks-space-xl: 32px;

  /* Shadows */
  --chonks-shadow-sm: 2px 2px 0;
  --chonks-shadow-md: 4px 4px 0;
  --chonks-shadow-lg: 6px 6px 0;
}

Creating Custom Themes

Create your own theme by overriding the CSS custom properties:

/* my-custom-theme.css */
:root {
  --chonks-primary: #ff00ff;
  --chonks-primary-dark: #cc00cc;
  --chonks-primary-light: #ff99ff;
}

Then import it after the main CSS:

<link rel="stylesheet" href="chonks.css">
<link rel="stylesheet" href="my-custom-theme.css">

Utility Classes

Chonks UI includes utility classes for spacing, layout, and more:

<!-- Spacing -->
<div class="chonks-p-md chonks-m-lg"></div>
<div class="chonks-mb-xl chonks-mt-sm"></div>

<!-- Layout -->
<div class="chonks-flex chonks-gap-md chonks-items-center"></div>
<div class="chonks-flex chonks-justify-between"></div>

<!-- Text -->
<div class="chonks-text-center"></div>
<div class="chonks-text-left"></div>

<!-- Width -->
<div class="chonks-w-full"></div>

<!-- Container -->
<div class="chonks-container"></div>

Examples

Check out the examples directory for complete demos:

  • /examples/html/index.html - Plain HTML/CSS example
  • /examples/react/App.jsx - React example with theme switching

File Structure

chonks-ui/
├── css/
│   ├── chonks.css           # Main CSS file
│   └── themes/
│       ├── pink.css         # Pink theme
│       ├── blue.css         # Blue theme
│       ├── purple.css       # Purple theme
│       └── green.css        # Green theme
├── react/
│   ├── package.json
│   └── src/
│       ├── index.js         # Main export
│       ├── components/      # React components
│       └── hooks/           # React hooks
├── examples/
│   ├── html/               # HTML examples
│   └── react/              # React examples
└── docs/                   # Documentation

Browser Support

Chonks UI works in all modern browsers that support CSS custom properties:

  • Chrome/Edge 88+
  • Firefox 89+
  • Safari 14+

License

MIT

Contributing

This is a personal design system, but feel free to fork and customize for your own projects!

Credits

Created by Cory Wilkerson

Inspired by the aesthetic of terminal interfaces, retro computing, and brutalist web design.