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-TW
Usage (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

PropTypeDefaultDescription
colorStartstring (hex)"#5227FF"Primary aurora band start.
colorMidstring (hex)"#A855F7"Mid-spectrum ribbon color.
colorEndstring (hex)"#7CFF67"Secondary spectrum accent.
blendnumber0.65Luminance intensity.
speednumber0.7Horizontal ribbon drift.