All styles
Neon & Glow

Starlight CSS Button

Free25 lines · no JS · dark only
Open in Studio
Theme

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

States
default
hover
focus-visible
active
disabled
not declared
.btn-starlight {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid #2b3357;
  border-radius: 12px;
  background: radial-gradient(1.5px 1.5px at 20% 30%, #ffffff, transparent), radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1.2px 1.2px at 45% 70%, rgba(255, 255, 255, 0.9), transparent), radial-gradient(1px 1px at 85% 60%, rgba(255, 255, 255, 0.7), transparent), #101425;
  color: #e0e7ff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(148, 163, 255, 0.25);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn-starlight:hover {
  border-color: #4c5a9e;
  box-shadow: 0 0 32px rgba(165, 180, 252, 0.5);
}
.btn-starlight:active {
  box-shadow: 0 0 14px rgba(148, 163, 255, 0.3);
}
.btn-starlight:focus-visible {
  outline: 2px solid #2b3357;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-starlight
Neon & GlowRoundedParticles

Implementation notes

About the Starlight CSS button

Starlight uses luminous contrast designed for dark and futuristic interfaces. Its rounded corners balance product-friendly softness with a clear boundary. The particles details are included in the copy-paste CSS.

Usage

<button class="btn-starlight">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

Aurora Studio Decision Modal

Aurora Studio kit

Gradient charactergradient surface
Unlock with Pro →
Free sample
Input74% match

Aurora Studio Smart Input

Aurora Studio kit

Gradient charactergradient surface
Pro preview
Toggle74% match

Aurora Studio Preference Toggle

Aurora Studio kit

Gradient charactergradient surface
Unlock with Pro →
Pro preview
Card74% match

Aurora Studio Feature Card

Aurora Studio kit

Gradient charactergradient surface
Unlock with Pro →
Pro preview
Dropdown74% match

Aurora Studio Action Menu

Aurora Studio kit

Gradient charactergradient surface
Unlock with Pro →
Pro preview
Form74% match

Aurora Studio Signup Form

Aurora Studio kit

Gradient charactergradient surface
Unlock with Pro →
Get the complete Aurora Studio kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Neon Duotone

Pulse Beacon

Tron Line

Neon Cyan

Neon Dash

Neon Fill Violet

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