Fields of teal, sage and clay light drift and blend under swaying aurora ribbons.
Drifting, blurred color fields for hero sections and empty states.
Customize
Usage
import { AuroraBackground } from "@/components/motionkit/aurora-background";
<AuroraBackground
className="h-96 rounded-3xl"
>
<h1>Your hero</h1>
</AuroraBackground>Motion
The exact curves this component runs, plotted with Motion's own maths.
Drift (fastest of 3 fields)
Runs on its own
Hero sections, sign-up pages and empty states, a calm backdrop that adds colour without competing with content.
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.
Works in the App Router as is. Requires Tailwind CSS v4.
One command adds the file and installs its dependencies. Needs a components.json (run npx shadcn@latest init once if you don't have one).
npx shadcn@latest add https://www.motionkitui.com/r/aurora-background.jsonnpm install motionSave as components/motionkit/aurora-background.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>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | [string, string, string] | ["#0E7C86", "#A56D5B", "#7D9E9D"] | Three blob colors. |
| children | ReactNode | — | Content rendered above the effect. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes. Run npx shadcn@latest add https://www.motionkitui.com/r/aurora-background.json in any project with a components.json. It saves the file to components/motionkit and installs its dependencies.
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.
Fields of teal, sage and clay light drift and blend under swaying aurora ribbons.
A soft, blurred conic gradient turning slowly behind your content, like light moving round a room.
Slow, drifting colour with a fine film grain, for warm editorial heroes.
Ambient by default