Tactile Citrus Decision Modal
Tactile Citrus kit
A real <button> carrying .btn-floating-pill — the preview is the stylesheet, not a picture of it.
.btn-floating-pill {
display: inline-block;
padding: 13px 30px;
border: none;
border-radius: 999px;
background: #8b5cf6;
color: #ffffff;
font-family: inherit;
font-size: 15px;
font-weight: 600;
cursor: pointer;
box-shadow: 0 12px 24px -8px rgba(139, 92, 246, 0.7);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-floating-pill:hover {
transform: translateY(-4px);
box-shadow: 0 20px 32px -10px rgba(139, 92, 246, 0.8);
}
.btn-floating-pill:active {
transform: translateY(-1px);
box-shadow: 0 8px 16px -6px rgba(139, 92, 246, 0.7);
}
.btn-floating-pill:focus-visible {
outline: 2px solid #8b5cf6;
outline-offset: 3px;
}
Implementation notes
Floating Pill uses visible depth and press feedback that makes interaction feel physical. Its pill silhouette makes the label easy to scan in compact layouts. Interaction feedback comes from a 250ms hover lift. The interaction stays intentionally restrained.
Usage
<button class="btn-floating-pill">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