All styles
Playful

Duck Yellow CSS Button

Free27 lines · no JS · WCAG AAA 9.0 · light-safe
Open in Studio
Theme

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

States
default
hover
focus-visible
active
disabled
not declared
.btn-duck-yellow {
  display: inline-block;
  padding: 14px 30px;
  border: 3px solid #451a03;
  border-radius: 16px;
  background: #fbbf24;
  color: #451a03;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 4px 0 #451a03;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-duck-yellow:hover {
  background: #f59e0b;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #451a03;
}
.btn-duck-yellow:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #451a03;
}
.btn-duck-yellow:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-duck-yellow
PlayfulRounded

Implementation notes

About the Duck Yellow CSS button

Duck Yellow uses expressive color, shape and feedback for characterful products. Its rounded corners balance product-friendly softness with a clear boundary. It combines a 3px border and a 150ms hover shift. The interaction stays intentionally restrained.

Usage

<button class="btn-duck-yellow">Quack</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
Rounded
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
Modal85% match

Tactile Citrus Decision Modal

Tactile Citrus kit

orange palettesolid surface
Unlock with Pro →
Free sample
Input85% match

Tactile Citrus Smart Input

Tactile Citrus kit

orange palettesolid surface
Pro preview
Toggle85% match

Tactile Citrus Preference Toggle

Tactile Citrus kit

orange palettesolid surface
Unlock with Pro →
Pro preview
Card85% match

Tactile Citrus Feature Card

Tactile Citrus kit

orange palettesolid surface
Unlock with Pro →
Pro preview
Dropdown85% match

Tactile Citrus Action Menu

Tactile Citrus kit

orange palettesolid surface
Unlock with Pro →
Pro preview
Form85% match

Tactile Citrus Signup Form

Tactile Citrus kit

orange palettesolid surface
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

Spark Burst

Swing Tag

Wiggle

Crayon Scribble

Tag Label

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