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

@eliancodes/brutal-ui

v1.0.0

Published

The brutalist UI components package, built for extendability and compatibility

Readme

brutal-ui

@eliancodes/brutal-ui is a small Astro-first design system for loud, tactile interfaces: thick borders, hard shadows, bright surfaces, and simple composition.

What improved in this version

  • deterministic semantic variants instead of random colors
  • shared design tokens for color, spacing, shadow, radius, and motion
  • consistent component APIs with native HTML attribute passthrough
  • better accessibility states for focus, active, disabled, and reduced motion
  • exported configuration and types for easier theming

Installation

npm install @eliancodes/brutal-ui

Peer dependency:

  • astro@^6

Quick Start

---
import { ActualButton, Button, Card, Pill } from '@eliancodes/brutal-ui';
---

<Card variant="accent" interactive>
  <h2>Brutal UI</h2>
  <p>Opinionated components for loud interfaces.</p>

  <div style="display:flex; gap: 0.75rem; flex-wrap: wrap;">
    <Button href="/docs" variant="primary">Read docs</Button>
    <ActualButton variant="danger" size="sm">Delete</ActualButton>
    <Pill variant="info">Astro</Pill>
  </div>
</Card>

Components

Button

Anchor-styled button for navigation.

Props:

  • native anchor attributes like href, target, rel, class, and aria-*
  • variant?: 'primary' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | 'neutral'
  • size?: 'sm' | 'md' | 'lg'
  • color?: string to override the resolved variant color
  • fullWidth?: boolean

ActualButton

Real <button> element for actions and forms.

Props:

  • native button attributes like type, disabled, name, value, class, and aria-*
  • variant?: 'primary' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | 'neutral'
  • size?: 'sm' | 'md' | 'lg'
  • color?: string
  • fullWidth?: boolean

Card

Surface container for grouped content.

Props:

  • native div attributes like class, id, style, data-*, and aria-*
  • variant?: 'primary' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | 'neutral'
  • color?: string
  • padded?: boolean
  • interactive?: boolean

Pill

Compact label or status marker.

Props:

  • native span attributes like class, id, and aria-*
  • variant?: 'primary' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | 'neutral'
  • size?: 'sm' | 'md' | 'lg'
  • color?: string

Theming

The package exports a configuration object and named tokens:

import { Config, brutalTokens, variantColors } from '@eliancodes/brutal-ui';

Available semantic variants:

  • primary
  • accent
  • info
  • success
  • warning
  • danger
  • neutral

You can also override the font family globally:

:root {
  --brutal-font-family: "Sanchez", Georgia, serif;
}

And you can bypass variants entirely with a custom color:

<Card color="#d9f99d">Custom green card</Card>

Accessibility Notes

  • Buttons include visible keyboard focus styles.
  • Motion is reduced automatically when prefers-reduced-motion is enabled.
  • Disabled buttons are styled distinctly.
  • Button supports aria-disabled="true" for non-interactive link states.

Package Exports

import {
  Button,
  ActualButton,
  Card,
  Pill,
  Config,
  brutalTokens,
  variantColors,
} from '@eliancodes/brutal-ui';

Development

npm run check
npm run pack:check