# Gradient Glow Shadow

> A rainbow gradient shadow glowing out from under a dark card, made from a blurred pseudo-element.

- Category: [CSS Box Shadows](https://copy-css.com/category/shadows)
- Tags: rainbow, blur, colorful, pseudo-element, dark card
- Live preview: https://copy-css.com/snippets/gradient-glow-shadow
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="glow-gradient">Pro</div>
```

## CSS

```css
/* Give the parent isolation: isolate if the glow hides behind its background */
.glow-gradient {
  position: relative;
  display: grid;
  place-items: center;
  width: 160px;
  height: 110px;
  border-radius: 18px;
  background: #0f172a;
  color: #f8fafc;
  font: 700 22px system-ui, sans-serif;
}

.glow-gradient::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f43f5e, #a855f7, #3b82f6, #22d3ee);
  filter: blur(20px);
  opacity: 0.9;
  transform: translateY(12px) scale(0.95);
}
```

## Notes

- This CSS Gradient Glow Shadow is 24 lines of pure CSS (0.6 KB) with no JavaScript and no dependencies. It uses transforms, linear gradients, filters and CSS Grid.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
