All styles
Retro

8-Bit CSS Button

Free27 lines · no JS · WCAG AA large 3.8
Open in Studio
Theme

A real <button> carrying .btn-eight-bit — the preview is the stylesheet, not a picture of it.

States
default
hover
focus-visible
active
disabled
not declared
.btn-eight-bit {
  display: inline-block;
  padding: 12px 22px;
  border: 4px solid #000000;
  border-radius: 0;
  background: #ef4444;
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.35), inset 4px 4px 0 rgba(255, 255, 255, 0.3);
  transition: filter 0.1s ease;
}
.btn-eight-bit:hover {
  filter: brightness(1.1);
}
.btn-eight-bit:active {
  box-shadow: inset 4px 4px 0 rgba(0, 0, 0, 0.35), inset -4px -4px 0 rgba(255, 255, 255, 0.2);
  transform: translate(2px, 2px);
}
.btn-eight-bit:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-eight-bit
RetroSquare

Implementation notes

About the 8-Bit CSS button

8-Bit uses nostalgic visual cues paired with modern interaction states. Its square geometry creates a compact, precise control. It combines a two-layer shadow and a 4px border. The interaction stays intentionally restrained.

Usage

<button class="btn-eight-bit">PRESS START</button>

Pair it with the CSS tab above — the class is self-contained.

Before shipping: keep the semantic button element, verify contrast on your actual background and add a visible:focus-visible state. If you retain motion, include a prefers-reduced-motion override.
Built with
HTML + plain CSS
Shape
Square
Exports
CSS, Tailwind, React
License
MIT · commercial use
Complete the look

Build the interface around this button

We matched its palette, surface, geometry and motion to a complete UI system — like composing an outfit, not browsing unrelated parts.

Style DNA · v1
How matching works →
Pro preview
Modal89% match

Pixel Arcade Decision Modal

Pixel Arcade kit

Retro charactertextured surface
Unlock with Pro →
Free sample
Input89% match

Pixel Arcade Smart Input

Pixel Arcade kit

Retro charactertextured surface
Pro preview
Toggle89% match

Pixel Arcade Preference Toggle

Pixel Arcade kit

Retro charactertextured surface
Unlock with Pro →
Pro preview
Card89% match

Pixel Arcade Feature Card

Pixel Arcade kit

Retro charactertextured surface
Unlock with Pro →
Pro preview
Dropdown89% match

Pixel Arcade Action Menu

Pixel Arcade kit

Retro charactertextured surface
Unlock with Pro →
Pro preview
Form89% match

Pixel Arcade Signup Form

Pixel Arcade kit

Retro charactertextured surface
Unlock with Pro →
Get the complete Pixel Arcade kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Vaporwave

Newsprint

Wild West

Pixel Blaster

Terminal Green

Windows 95

Two optional extras load only if you allow them. Every button, preview and line of code works exactly the same either way. What each one does