All styles
Solid

Sweep Shine CSS Button

Free35 lines · no JS · WCAG AA 6.3
Open in Studio
Theme

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

States
default
hover
focus-visible
active
disabled
not declared
.btn-sweep-shine {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 13px 28px;
  border: none;
  border-radius: 12px;
  background: #4f46e5;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-sweep-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-25deg);
  transition: left 0.55s ease;
}
.btn-sweep-shine:hover::before {
  left: 130%;
}
.btn-sweep-shine:active {
  background: #4338ca;
}
.btn-sweep-shine:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-sweep-shine
SolidRoundedShimmerHover Reveal

Implementation notes

About the Sweep Shine CSS button

Sweep Shine uses a clear, high-contrast treatment for primary product actions. Its rounded corners balance product-friendly softness with a clear boundary. The shimmer, hover reveal details are included in the copy-paste CSS.

Usage

<button class="btn-sweep-shine">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
Modal86% match

Midnight System Decision Modal

Midnight System kit

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

Midnight System Smart Input

Midnight System kit

blue palettesolid surface
Pro preview
Toggle86% match

Midnight System Preference Toggle

Midnight System kit

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

Midnight System Feature Card

Midnight System kit

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

Midnight System Action Menu

Midnight System kit

blue palettesolid surface
Unlock with Pro →
Pro preview
Form86% 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