Measured entry

neobrutalism-button

buttonbrutalism

A React and TypeScript button distributed as a shadcn registry item. It uses Tailwind utility classes and class-variance-authority for style variants, Radix Slot for the asChild composition option, and a local cn helper backed by class-merging utilities. Its theme-specific colors, borders, radii, and shadow offsets come from custom Tailwind tokens.

Specimen
Harness screenshot of neobrutalism-button at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of neobrutalism-button at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of neobrutalism-button at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for neobrutalism-button
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal31.7 KB (97.2 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 842ms
error during build:
[vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-34cc0e4d908c/src/cut/components/ui/button.tsx".

Verdict

A solid, compact choice when neobrutalism is already part of the design system. It builds and mounts cleanly without a provider, offers useful composition through Radix Slot, and keeps its API familiar. The main cost is adopting its custom theme tokens and assertive hover motion.

Use it if

  • You want a high-contrast neobrutalist button with pressed-style hover movement.
  • You need default, neutral, shadowless, and reverse interaction treatments from one variant API.
  • You need asChild composition for rendering links or router controls with button styling.
  • Your Tailwind theme already defines the component's custom color, radius, border, and shadow tokens.

Skip it if

  • Your product uses a restrained or native-platform visual language that clashes with thick borders and offset shadows.
  • You do not want to maintain custom Tailwind theme tokens for a single control.
  • You need loading state, icon placement rules, or an opinionated polymorphic API built into the component.
  • Your interaction design cannot accommodate controls that shift position when hovered.

Install

Installation record for neobrutalism-button
Declared dependencies@radix-ui/react-slot, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add Radix Slot, class-variance-authority, clsx, and tailwind-merge; provide the cn class-merging helper; configure the import alias or replace it with a relative path; and define the referenced Tailwind color, border, radius, shadow, and shadow-offset tokens. Ensure React and Tailwind are already configured.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

License
MIT
Record published
2026-08-16

Alternatives

Other published entries for the button pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.