Aurora
Soft vertical curtain ribbons drifting gently across a deep obsidian sky, rendered with additive blending for smooth hero and section backdrops.
#aurora#shader#ambient#canvas
Customize
#5227FF
#A855F7
#7CFF67
0.65
0.7
Installation
$pnpm dlx yourbrand@latest add @yourbrand/Aurora-TS-TWUsage (synced with live props)
<Aurora
colorStart="#5227FF"
colorMid="#A855F7"
colorEnd="#7CFF67"
blend={0.65}
speed={0.7}
/>Source Code
Aurora.tsx"use client";
import React from "react";
export interface AuroraProps {
colorStart?: string;
colorMid?: string;
colorEnd?: string;
blend?: number;
speed?: number;
}
export function Aurora({
colorStart = "#5227FF",
colorMid = "#A855F7",
colorEnd = "#7CFF67",
blend = 0.65,
speed = 0.7,
}: AuroraProps) {
return (
<div
className="relative h-full w-full overflow-hidden rounded-2xl bg-[#0E0B13]"
style={{
backgroundImage: `radial-gradient(ellipse at 25% 15%, ${colorStart}88, transparent 55%), radial-gradient(ellipse at 75% 25%, ${colorEnd}66, transparent 55%), radial-gradient(ellipse at 50% 60%, ${colorMid}66, transparent 60%)`,
opacity: blend,
}}
data-speed={speed}
/>
);
}
Props API
| Prop | Type | Default | Description |
|---|---|---|---|
| colorStart | string (hex) | "#5227FF" | Primary aurora band start. |
| colorMid | string (hex) | "#A855F7" | Mid-spectrum ribbon color. |
| colorEnd | string (hex) | "#7CFF67" | Secondary spectrum accent. |
| blend | number | 0.65 | Luminance intensity. |
| speed | number | 0.7 | Horizontal ribbon drift. |