# Aurora Background

> Drifting, blurred color fields for hero sections and empty states.

Category: Backgrounds · Free · Updated 2026-10-20 · Live demo: https://www.motionkitui.com/components/aurora-background

## When to use it

Hero sections, sign-up pages and empty states, a calm backdrop that adds colour without competing with content.

## How it works

Three large, heavily blurred colour blobs blend with mix-blend-mode: screen and drift along their own looping paths at different speeds, so the pattern never visibly repeats. A radial vignette keeps the edges dark and the middle readable.

## Installation

```bash
npx shadcn@latest add https://www.motionkitui.com/r/aurora-background.json
```

Or copy `components/motionkit/aurora-background.tsx` below. Requires react, motion and Tailwind CSS v4. Free for personal projects; commercial use needs MotionKit Plus (https://www.motionkitui.com/pricing).

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `colors` | `[string, string, string]` | `["#0E7C86", "#A56D5B", "#7D9E9D"]` | Three blob colors. |
| `children` | `ReactNode` |  | Content rendered above the effect. |

## Accessibility

- **Keyboard: Not applicable.** A decorative background with nothing to focus.
- **Screen readers: Pass.** The colour fields are hidden from assistive tech.
- **Reduced motion: Partial.** The colour fields hold still for reduced-motion users. It loops forever otherwise, so if it sits beside other content for more than 5 seconds, WCAG 2.2.2 asks you to add a pause control.
- **Colour contrast: Partial.** The glow moves behind your content, so contrast varies across the area. Test your text against the brightest point.

## Source

```tsx
"use client";

import type { ReactNode } from "react";
import { motion, useReducedMotion } from "motion/react";

type AuroraBackgroundProps = {
  children?: ReactNode;
  /** Three blob colors. */
  colors?: [string, string, string];
  className?: string;
};

const paths = [
  { x: ["-10%", "15%", "-10%"], y: ["-10%", "10%", "-10%"], duration: 14 },
  { x: ["20%", "-5%", "20%"], y: ["15%", "-10%", "15%"], duration: 18 },
  { x: ["5%", "25%", "5%"], y: ["25%", "5%", "25%"], duration: 22 },
];

export function AuroraBackground({
  children,
  colors = ["#0E7C86", "#A56D5B", "#7D9E9D"],
  className = "",
}: AuroraBackgroundProps) {
  const reduceMotion = useReducedMotion();

  return (
    <div className={`relative isolate overflow-hidden bg-[#0C1010] ${className}`}>
      <div aria-hidden className="absolute inset-0 -z-10">
        {paths.map((path, index) => (
          <motion.div
            key={index}
            className="absolute left-[10%] top-[5%] h-[60%] w-[60%] rounded-full opacity-50 mix-blend-screen blur-3xl"
            style={{ backgroundColor: colors[index] }}
            animate={reduceMotion ? undefined : { x: path.x, y: path.y }}
            transition={{ duration: path.duration, repeat: Infinity, ease: "easeInOut" }}
          />
        ))}
        <div className="absolute inset-0 bg-[radial-gradient(transparent,rgb(12_16_16/0.85))]" />
      </div>
      {children}
    </div>
  );
}
```
