Measured entry
neobrutalism-button
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.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 31.7 KB (97.2 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | @radix-ui/react-slot, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no 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.
Author repository
github.com/ekmas/neobrutalism-componentsAlternatives
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.
- neu-buttonneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-buttonclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- tripled-animated-radio-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glow-link-buttonliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 58.9KB
- Bare
- pass
- Prov
- NO
- tripled-mood-gradient-button-shadcnuigradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 59.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glass-ai-cardliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 59.5KB
- Bare
- pass
- Prov
- NO