Brutalist Button
Square Neo-Brutalist Button projection over Base Button
The Button projection inherits Base Button semantics and adds only the Neo-Brutalist visual delta: 5px rounded geometry, hard borders, hard offset shadows, and flat fills.
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
Install
Section titled “Install”
npx @proto.ui/cli@latest add wc brutalist-button
The Brutalist Button carries the Neo-Brutalist visual language: hard borders, offset shadows, and flat fills. The examples below use the family palette tokens (mint, lavender, coral, sky) to show the supported color range.
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div class="flex flex-wrap items-center gap-4">
<wc-brutalist-button>Solid main</wc-brutalist-button>
<wc-brutalist-button variant="solid" color="mint">Mint</wc-brutalist-button>
<wc-brutalist-button variant="solid" color="lavender">Lavender</wc-brutalist-button>
<wc-brutalist-button variant="solid" color="coral">Coral</wc-brutalist-button>
<wc-brutalist-button variant="solid" color="sky">Sky</wc-brutalist-button>
</div>
Surface
Section titled “Surface” Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div class="flex flex-wrap items-center gap-4">
<wc-brutalist-button variant="surface">Surface</wc-brutalist-button>
</div>
Destructive
Section titled “Destructive” Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div class="flex flex-wrap items-center gap-4">
<wc-brutalist-button variant="destructive">Destructive</wc-brutalist-button>
</div>
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div class="flex flex-wrap items-center gap-4">
<wc-brutalist-button size="icon">!</wc-brutalist-button>
</div>
Disabled
Section titled “Disabled” Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div class="flex flex-wrap items-center gap-4">
<wc-brutalist-button disabled>Disabled</wc-brutalist-button>
<wc-brutalist-button variant="surface" disabled>Disabled surface</wc-brutalist-button>
</div>
API Reference
Section titled “API Reference”| Prop | Type | Default |
|---|---|---|
variant | 'solid' 'surface' 'destructive' | solid |
color | 'default' 'mint' 'lavender' 'coral' 'sky' | default |
size | 'default' 'icon' | default |
disabled | boolean | false |