# Conic Light Beam

> A dark hero background with a soft cone of light shining down from the top, built with a conic gradient.

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

## HTML

```html
<div class="light-beam"></div>
```

## CSS

```css
.light-beam {
  background:
    radial-gradient(ellipse 35% 8% at 50% 0, #e0e7ff, #0000),
    linear-gradient(#02061700 20%, #020617),
    conic-gradient(
      from 140deg at 50% -5%,
      #0000,
      #6366f140 25deg,
      #c7d2fe99 40deg,
      #6366f140 55deg,
      #0000 80deg
    ),
    #020617;
}
```

## Notes

- This CSS Conic Light Beam is 14 lines of pure CSS (0.3 KB) with no JavaScript and no dependencies. It uses linear gradients, radial gradients and conic gradients.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
