All styles
Outline & Ghost

Split Center CSS Button

Free37 lines · no JS
Open in Studio
Theme

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

States
default
hover
focus-visible
active
not declared
disabled
not declared
.btn-split-center {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid #f43f5e;
  border-radius: 10px;
  background: transparent;
  color: #f43f5e;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}
.btn-split-center::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background: #f43f5e;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.btn-split-center:hover {
  color: #ffffff;
}
.btn-split-center:hover::before {
  transform: scaleX(1);
}
.btn-split-center:focus-visible {
  outline: 2px solid #f43f5e;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-split-center
Outline & GhostRoundedSlideHover Reveal

Implementation notes

About the Split Center CSS button

Split Center uses a lightweight treatment that keeps secondary actions visible. Its rounded corners balance product-friendly softness with a clear boundary. Its structure comes from a 2px border. The slide, hover reveal details are included in the copy-paste CSS.

Usage

<button class="btn-split-center">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
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
Modal74% match

Quiet Paper Decision Modal

Quiet Paper kit

outline surfaceMinimal character
Unlock with Pro →
Free sample
Input74% match

Quiet Paper Smart Input

Quiet Paper kit

outline surfaceMinimal character
Pro preview
Toggle74% match

Quiet Paper Preference Toggle

Quiet Paper kit

outline surfaceMinimal character
Unlock with Pro →
Pro preview
Card74% match

Quiet Paper Feature Card

Quiet Paper kit

outline surfaceMinimal character
Unlock with Pro →
Pro preview
Dropdown74% match

Quiet Paper Action Menu

Quiet Paper kit

outline surfaceMinimal character
Unlock with Pro →
Pro preview
Form74% match

Quiet Paper Signup Form

Quiet Paper kit

outline surfaceMinimal character
Unlock with Pro →
Get the complete Quiet Paper kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Offset Pop

Fill Slide

Accent Bar

Outline Rose

Blueprint Trace

Bold Stroke

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