A real <button> carrying .btn-cotton-candy — the preview is the stylesheet, not a picture of it.
.btn-cotton-candy {
display: inline-block;
padding: 12px 28px;
border: none;
border-radius: 999px;
background: linear-gradient(135deg, #fbcfe8, #bfdbfe);
color: #86198f;
font-family: inherit;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: filter 0.2s ease, transform 0.15s ease;
}
.btn-cotton-candy:hover {
filter: saturate(1.4);
transform: translateY(-1px);
}
.btn-cotton-candy:active {
transform: translateY(0) scale(0.98);
}
.btn-cotton-candy:focus-visible {
outline: 2px solid currentColor;
outline-offset: 3px;
}
Implementation notes
About the Cotton Candy CSS button
Cotton Candy uses a soft color treatment for friendly and approachable interfaces. Its pill silhouette makes the label easy to scan in compact layouts. It is built around a two-stop linear gradient anchored on #fbcfe8 with a 200ms hover lift. The interaction stays intentionally restrained.
Usage
<button class="btn-cotton-candy">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.- Built with
- HTML + plain CSS
- Shape
- Pill
- Exports
- CSS, Tailwind, React
- License
- MIT · commercial use
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.
Soft Bloom Smart Input
Soft Bloom kit
Soft Bloom Preference Toggle
Soft Bloom kit