All styles
Solid

Success Morph CSS Button

Free44 lines · no JS · WCAG AA 5.6
Open in Studio
Theme

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

States
default
hover
focus-visible
active
disabled
not declared
.btn-success-morph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  background: #4f46e5;
  color: #eef2ff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, padding 0.3s ease, transform 0.1s ease;
}
.btn-success-morph::after {
  content: "✓";
  display: inline-block;
  width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(8px);
  transition: width 0.3s ease, margin-left 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
}
.btn-success-morph:hover {
  background: #16a34a;
  padding-left: 20px;
  padding-right: 20px;
}
.btn-success-morph:hover::after {
  width: 1em;
  margin-left: 8px;
  opacity: 1;
  transform: translateX(0);
}
.btn-success-morph:active {
  background: #15803d;
  transform: translateY(1px);
}
.btn-success-morph:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-success-morph
SolidRoundedMorphingIcon FX

Implementation notes

About the Success Morph CSS button

Success Morph uses a clear, high-contrast treatment for primary product actions. Its rounded corners balance product-friendly softness with a clear boundary. The morphing, icon fx details are included in the copy-paste CSS.

Usage

<button class="btn-success-morph">Submit</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
Modal87% match

Midnight System Decision Modal

Midnight System kit

blue palettesolid surface
Unlock with Pro →
Free sample
Input87% match

Midnight System Smart Input

Midnight System kit

blue palettesolid surface
Pro preview
Toggle87% match

Midnight System Preference Toggle

Midnight System kit

blue palettesolid surface
Unlock with Pro →
Pro preview
Card87% match

Midnight System Feature Card

Midnight System kit

blue palettesolid surface
Unlock with Pro →
Pro preview
Dropdown87% match

Midnight System Action Menu

Midnight System kit

blue palettesolid surface
Unlock with Pro →
Pro preview
Form87% match

Midnight System Signup Form

Midnight System kit

blue palettesolid surface
Unlock with Pro →
Get the complete Midnight System kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Arrow Nudge

Classic Blue

Midnight

Ripple Press

Slate Calm

Soft Round

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