Radial Highlight Background

This background uses a subtle radial highlight to draw focus toward content center without overpowering surrounding UI.

HTML

<div class="bg-radial">
  Highlight
</div>

CSS

.bg-radial {
  width: 200px;
  padding: 2rem;
  border-radius: 11px;
  background:
    radial-gradient(circle at top, rgba(99,102,241,0.25), transparent 60%),
    #ffffff;
  color: #111827;
  text-align: center;
  font-size: 13px;
  transition: transform 150ms ease;
}

.bg-radial:hover {
  transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
  .bg-radial {
    background:
      radial-gradient(circle at top, rgba(129,140,248,0.35), transparent 60%),
      #020617;
    color: #e5e7eb;
  }
}

Notes

  • Focused visual emphasis
  • Lightweight and performance
  • Suitable for cards and highlights

Preview styles shown. Production customization recommended.

Browse More UI Components

Explore hundreds of reusable HTML & CSS UI components built for modern web projects.
Discover buttons, cards, loaders, animations, layouts, and more all with live previews and clean, copy-paste code.

Leave a Reply

Your email address will not be published. Required fields are marked *