Tactile Citrus Decision Modal
Tactile Citrus kit
A real <button> carrying .btn-jelly-bean — the preview is the stylesheet, not a picture of it.
.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;
}
Implementation notes
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.
:focus-visible state. If you retain motion, include a prefers-reduced-motion override.We matched its palette, surface, geometry and motion to a complete UI system — like composing an outfit, not browsing unrelated parts.
Tactile Citrus kit
Tactile Citrus kit
Tactile Citrus kit
Tactile Citrus kit
Tactile Citrus kit
Tactile Citrus kit
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