# Spotlight Gradient

> A soft spotlight glowing down from the top of a dark background.

- Category: [CSS Gradients & Patterns](https://copy-css.com/category/gradients)
- Tags: radial-gradient, spotlight, dark, vignette, hero
- Live preview: https://copy-css.com/snippets/spotlight-gradient
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="spotlight"></div>
```

## CSS

```css
.spotlight {
  background:
    radial-gradient(ellipse 60% 70% at 50% -10%, rgba(250, 204, 21, 0.35), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 120%, rgba(59, 130, 246, 0.18), transparent 70%),
    #09090b;
}
```

## Notes

- This CSS Spotlight Gradient is 6 lines of pure CSS (0.2 KB) with no JavaScript and no dependencies. It uses radial gradients.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
