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

@sprtn/ui

v1.3.2

Published

Neo-brutalist UI kit. One CSS file + one optional JS runtime for interactive form components.

Downloads

959

Readme

BRUT — A Neo-Brutalist UI Kit

Build it like you mean it.

npm version npm downloads bundle size license

Hard borders. Hard offset shadows. Loud color. No gradients, no soft drop-shadows, no rounded-corner-with-left-accent-stripe cliché. 150+ components. Vanilla HTML, CSS, and JS — no React, no build step required.

→ Browse components  ·  → Live examples  ·  → Get started


Quick start

Three install paths. Pick the one that matches how you ship.

CDN — zero install

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sprtn/ui@1/dist/brut.css" />
<script src="https://cdn.jsdelivr.net/npm/@sprtn/ui@1/dist/brut.js" defer></script>

@1 resolves to the latest 1.x release. Pin to an exact version (@1.0.1) for production.

npm — for any bundler

npm install @sprtn/ui
# or: pnpm add @sprtn/ui
# or: yarn add @sprtn/ui
import '@sprtn/ui/css'  // styles
import '@sprtn/ui'      // optional JS runtime (data-brut auto-init)

The exports map covers Vite, webpack, esbuild, Rollup, Next.js, Astro, SvelteKit, and Nuxt out of the box. See integration guides for stack-specific walkthroughs.

One-shot config scaffold. Run npx brut init and you get brut.config.js (for the optional Vite plugin) plus a .mcp.json that registers the @sprtn/mcp server with Claude Code, Cursor, and Claude Desktop — so AI agents can read your component manifest without crawling source. Flags: --no-mcp, --no-config, --force.

Download

Grab the two files from the latest GitHub release or copy them out of node_modules/@sprtn/ui/dist/.


Your first component

<button type="button" class="brut-btn brut-btn--primary">SHIP IT.</button>

<form class="brut-form">
  <div class="brut-field">
    <label class="brut-field__label" for="email">Email</label>
    <input id="email" class="brut-input" type="email" />
  </div>

  <label class="brut-switch" data-brut="switch">
    <input type="checkbox" name="notify" hidden />
    <span class="brut-switch__knob"></span>
  </label>
</form>

Static visuals (button, input) need no JS. Anything carrying data-brut="…" (switch, tabs, dialog, stepper, combobox, dropzone, …) auto-inits on DOMContentLoaded from the loaded brut.js. For markup added later, call Brut.init(rootElement) after insertion. Re-init is a no-op.


What's in the box

  • One CSS filedist/brut.css. 80+ design tokens, every component styled, no preprocessor.
  • Optional JS runtimedist/brut.js. Adds keyboard, ARIA, and form-mirroring to interactive components. Skip the file if you only use static visuals.
  • AI-native manifestdist/components.json enumerates every component, its modifiers, events, copy-paste examples, and declared responsive shape. Backed by dist/manifest-schema.json.
  • Themeable — three layers of CSS variables. Swap visual identity via a single data-theme attribute or by overriding tokens in your own stylesheet.
  • Responsive by default — every interactive component declares one of nine canonical responsive shapes (fullscreen-modal on phones, bottom-sheet for anchored overlays, horizontal-scroll for wide rows, …) and is verified at 320/375/640/768/1024/1440 in CI. See docs/responsive-shapes.md.

Use it in your stack

| Stack | Import line | Walkthrough | | --- | --- | --- | | Vite (vanilla / Vue / React / Svelte) | import '@sprtn/ui/css' | vite.md | | Plain HTML + npm | <link href="node_modules/@sprtn/ui/dist/brut.css"> or import map | plain-html.md | | Next.js (App + Pages Router) | import '@sprtn/ui/css' in layout.tsx / _app.js | nextjs.md | | Astro | import '@sprtn/ui/css' in a layout | astro.md | | SvelteKit | import '@sprtn/ui/css' in +layout.svelte | sveltekit.md | | Nuxt | css: ['@sprtn/ui/css'] in nuxt.config.ts | nuxt.md |

Every walkthrough is a copy-paste starter. If your stack isn't listed, the npm install + import '@sprtn/ui/css' pattern works in any bundler that resolves the exports field (Node ≥18).


Customize via tokens

Every value in BRUT is a CSS variable. Override the ones you want — no recompile, no source patch.

/* your-theme.css — load AFTER brut.css */
:root {
  --primary:      #FF6B9D;                   /* swap yellow → pink */
  --font-display: 'Arial Black', sans-serif;
  --shadow-md:    6px 6px 0 0 #FF6B9D;       /* match the accent */
}

That single block changes the entire UI. The token system is split across three layers (primitives, semantic, intent) so themes override only what they need. See the manifest schema for the full enumeration.


Mental model

Four layers, in order:

  1. Tokens — every color, type step, space, shadow, border, radius, motion, z-index, and semantic alias is a CSS variable.
  2. Classes.brut-<name> blocks compose tokens into the visual system. No class hardcodes a value. Modifiers are BEM (.brut-btn--primary).
  3. Optional JS hook — interactivity opts in via data-brut="<name>". The runtime auto-inits on DOMContentLoaded.
  4. Custom event + hidden input — every form-state component dispatches brut:change with event.detail.value and mirrors its value to a hidden <input> so <form> submission just works.

That's the entire shape.


Documentation

  • Get started — install, first component, CSS-side @import, troubleshooting.
  • Components — 150+ components, organized by category, with live previews.
  • Integrations — Vite, Next.js, Astro, SvelteKit, Nuxt, plain HTML.
  • Examples — full-page templates (landing, login, dashboard).
  • Foundations — the visual rules every screen obeys.
  • Manifest schema — the source of truth for tooling and AI agents.
  • Changelog — release notes, semver-strict.

For tooling: dist/components.json is a machine-readable enumeration of every component. The companion @sprtn/mcp MCP server consumes it so AI agents can scaffold pages without crawling source.


Contributing

git clone https://github.com/Unal-Inanli/brut-ui.git
cd brut-ui && pnpm install && pnpm bootstrap

That's the full local setup — pnpm bootstrap builds dist/, runs brut doctor, and primes the MCP server. Each git worktree needs its own pnpm install && pnpm bootstrap because node_modules/ is per-worktree.

PRs welcome. Read CONTRIBUTING.md before opening one — it covers the four surfaces every component touches (CSS, JS, preview, docs) and the hard constraints (no deps, no gradients, no soft shadows, no transitions over 140ms).

For AI-orchestrated contributions, AGENTS.md is the authoritative recipe and CLAUDE.md is the orchestration playbook.


License

MIT © BRUT contributors.

Caveats

  • All three default fonts are substitutes loaded from Google Fonts. Replace them with your own .woff2 files by overriding the --font-* tokens. See foundations/fonts.
  • No icon set ships with the kit yet. Loading a third-party set from a CDN is not part of the supported install path. See foundations/iconography.
  • No dark mode yet. A "dark paper" reverse mode is the obvious next step.