All styles
Playful

Rainbow Pop CSS Button

Free26 lines · no JS · WCAG AAA 17.7 · light-safe
Open in Studio
Theme

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

States
default
hover
focus-visible
active
disabled
not declared
.btn-rainbow-pop {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #111827;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 #ef4444, 4px 4px 0 #f97316, 6px 6px 0 #facc15;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-rainbow-pop:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 #ef4444, 10px 10px 0 #f97316, 15px 15px 0 #facc15;
}
.btn-rainbow-pop:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 #ef4444, 2px 2px 0 #f97316, 3px 3px 0 #facc15;
}
.btn-rainbow-pop:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-rainbow-pop
PlayfulRoundedHover Reveal

Implementation notes

About the Rainbow Pop CSS button

Rainbow Pop uses expressive color, shape and feedback for characterful products. Its rounded corners balance product-friendly softness with a clear boundary. It combines a three-layer shadow, a 2px border and a 200ms hover shift. The hover reveal details are included in the copy-paste CSS.

Usage

<button class="btn-rainbow-pop">Button</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
Rounded
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
Modal81% match

Tactile Citrus Decision Modal

Tactile Citrus kit

solid surface3D & Tactile character
Unlock with Pro →
Free sample
Input81% match

Tactile Citrus Smart Input

Tactile Citrus kit

solid surface3D & Tactile character
Pro preview
Toggle81% match

Tactile Citrus Preference Toggle

Tactile Citrus kit

solid surface3D & Tactile character
Unlock with Pro →
Pro preview
Card81% match

Tactile Citrus Feature Card

Tactile Citrus kit

solid surface3D & Tactile character
Unlock with Pro →
Pro preview
Dropdown81% match

Tactile Citrus Action Menu

Tactile Citrus kit

solid surface3D & Tactile character
Unlock with Pro →
Pro preview
Form81% match

Tactile Citrus Signup Form

Tactile Citrus kit

solid surface3D & Tactile character
Unlock with Pro →
Get the complete Tactile Citrus kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Confetti Rain

Party Popper

Duck Yellow

Stamp Dashed

Blob Organic

Backflip

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