All styles
Pastel

Cotton Candy CSS Button

Free24 lines · no JS · light-safe
Open in Studio
Theme

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

States
default
hover
focus-visible
active
disabled
not declared
.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;
}
Self-contained · MIT · no build step.btn-cotton-candy
PastelPill

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.

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
Modal87% match

Soft Bloom Decision Modal

Soft Bloom kit

Pastel charactersoft surface
Unlock with Pro →
Free sample
Input87% match

Soft Bloom Smart Input

Soft Bloom kit

Pastel charactersoft surface
Pro preview
Toggle87% match

Soft Bloom Preference Toggle

Soft Bloom kit

Pastel charactersoft surface
Unlock with Pro →
Pro preview
Card87% match

Soft Bloom Feature Card

Soft Bloom kit

Pastel charactersoft surface
Unlock with Pro →
Pro preview
Dropdown87% match

Soft Bloom Action Menu

Soft Bloom kit

Pastel charactersoft surface
Unlock with Pro →
Pro preview
Form87% match

Soft Bloom Signup Form

Soft Bloom kit

Pastel charactersoft surface
Unlock with Pro →
Get the complete Soft Bloom kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Strawberry Milk

Baby Blue

Lavender Dream

Lemon Chiffon

Lilac Outline

Mint Cream

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