CSS Arcade Button
A glossy round arcade button that sinks into its base when you press it.
HTML
<button class="btn-arcade">Push</button>
CSS
.btn-arcade {
width: 96px;
height: 96px;
border: 0;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #f87171 0 12%, #dc2626 45%, #b91c1c 100%);
color: #fff;
font: 800 14px/1 system-ui, sans-serif;
letter-spacing: 0.12em;
text-transform: uppercase;
text-shadow: 0 1px 0 #7f1d1d;
box-shadow:
0 8px 0 #7f1d1d,
0 8px 0 6px #111827,
0 16px 20px 6px #00000080;
cursor: pointer;
transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-arcade:active {
transform: translateY(6px);
box-shadow:
0 2px 0 #7f1d1d,
0 2px 0 6px #111827,
0 8px 12px 6px #00000080;
}
.btn-arcade:focus-visible {
outline: 3px solid #fde047;
outline-offset: 12px;
}
About this CSS Arcade Button
This CSS Arcade Button is 31 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses transitions, transforms, radial gradients and box shadows. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.
CSS features used
Customize it
The colors in this snippet. Search and replace them to match your brand:
#f87171#dc2626#b91c1c#fff#7f1d1d#111827#00000080#fde047
How to use this arcade button
- Copy the HTML and paste it where you want the element to appear.
- Copy the CSS into your stylesheet, or inside a
<style>tag. - Keep the
.btn-arcadeclass name, or rename it in both places. Then tweak colors, sizes and timing to match your design. - Using React or Next.js? Change
classtoclassNamein the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).
Building with an AI tool?
“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.