All styles
Playful

Jelly Bean CSS Button

Free38 lines · no JS
Open in Studio
Theme

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

States
default
hover
focus-visible
active
disabled
not declared
.btn-jelly-bean {
  display: inline-block;
  padding: 13px 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #86efac 0%, #4ade80 45%, #16a34a 100%);
  color: #14532d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.55), inset 0 -4px 8px rgba(20, 83, 45, 0.35), 0 6px 14px rgba(22, 163, 74, 0.35);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-jelly-bean:hover {
  animation: btn-jelly-bean-wobble 0.6s ease-in-out;
}
.btn-jelly-bean:active {
  transform: scale(1.05, 0.85);
}
@keyframes btn-jelly-bean-wobble {
  0%, 100% {
    transform: rotate(0deg) scale(1, 1);
  }
  25% {
    transform: rotate(-3deg) scale(1.05, 0.93);
  }
  50% {
    transform: rotate(2deg) scale(0.95, 1.06);
  }
  75% {
    transform: rotate(-1deg) scale(1.02, 0.98);
  }
}
.btn-jelly-bean:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-jelly-bean
PlayfulPillElastic

Implementation notes

About the Jelly Bean CSS button

Jelly Bean uses expressive color, shape and feedback for characterful products. Its pill silhouette makes the label easy to scan in compact layouts. It is built around a three-stop linear gradient anchored on #86efac, with a 600ms keyframe animation and a three-layer shadow. The elastic details are included in the copy-paste CSS.

Usage

<button class="btn-jelly-bean">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
Pill
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
Modal71% match

Tactile Citrus Decision Modal

Tactile Citrus kit

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

Tactile Citrus Smart Input

Tactile Citrus kit

solid surface3D & Tactile character
Pro preview
Toggle71% match

Tactile Citrus Preference Toggle

Tactile Citrus kit

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

Tactile Citrus Feature Card

Tactile Citrus kit

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

Tactile Citrus Action Menu

Tactile Citrus kit

solid surface3D & Tactile character
Unlock with Pro →
Pro preview
Form71% 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

Bounce Joy

Blob Organic

Confetti Rain

Party Popper

Backflip

Rainbow Pop

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