All styles
Futuristic

Comet Border CSS Button

Free46 lines · no JS
Open in Studio
Theme

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

States
default
hover
focus-visible
active
not declared
disabled
not declared
.btn-comet-border {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-block;
  padding: 13px 28px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-comet-border::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 260deg, #22d3ee 320deg, #a5f3fc 355deg, transparent 360deg);
  animation: btn-comet-border-spin 1.8s linear infinite;
}
.btn-comet-border::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: 10px;
  background: #0d0d11;
}
.btn-comet-border:hover::after {
  background: #14141d;
}
@keyframes btn-comet-border-spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-comet-border:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-comet-border
FuturisticRoundedBorder FXAnimated

Implementation notes

About the Comet Border CSS button

Comet Border uses technical geometry and motion for an engineered visual language. Its rounded corners balance product-friendly softness with a clear boundary. Motion comes from a 1.8s keyframe animation. The border fx, animated details are included in the copy-paste CSS.

Usage

<button class="btn-comet-border">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
Modal83% match

Terminal Signal Decision Modal

Terminal Signal kit

Futuristic characterglow surface
Unlock with Pro →
Free sample
Input83% match

Terminal Signal Smart Input

Terminal Signal kit

Futuristic characterglow surface
Pro preview
Toggle83% match

Terminal Signal Preference Toggle

Terminal Signal kit

Futuristic characterglow surface
Unlock with Pro →
Pro preview
Card83% match

Terminal Signal Feature Card

Terminal Signal kit

Futuristic characterglow surface
Unlock with Pro →
Pro preview
Dropdown83% match

Terminal Signal Action Menu

Terminal Signal kit

Futuristic characterglow surface
Unlock with Pro →
Pro preview
Form83% match

Terminal Signal Signup Form

Terminal Signal kit

Futuristic characterglow surface
Unlock with Pro →
Get the complete Terminal Signal kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

RGB Glitch

Neural Pulse

Plasma Edge

Warp Drive

Holo Shift

Scanline Sweep

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