Aurora Background

Living aurora background with multiple variants. Sunset, ocean, forest, lavender, ember, ice.

Last updated Mar 5, 2026

Component

Aurora

Installation

pnpm dlx shadcn@latest add "https://pulkitxm.com/components/aurora-background.json"

Usage

Import

Add the AuroraBackground import.

import { AuroraBackground } from "@/components/aurora-background";

Use

Use with variant and children.

<AuroraBackground variant="sunset">
  Content
</AuroraBackground>;

Guidelines

  • Variants: default, sunset, ocean, forest, lavender, ember, ice, custom.
  • For custom variant, pass colors array of CSS color strings.
  • speed and blobCount control animation.

Props

All props are optional unless marked required. Use these to customize every aspect of the component.

PropTypeDefaultDescription
classNamestringAdditional CSS classes.
variantstring"default"Variant: default, sunset, ocean, forest, lavender, ember, ice, custom.
colorsstring[]Custom colors (required when variant='custom').
speednumber4Animation speed multiplier.
blobCountnumber4Number of animated blobs.
childrenClassNamestringClasses for the children wrapper.

Examples

Default

Default aurora variant.

Aurora
import { AuroraBackground } from "@/components/aurora-background";

<AuroraBackground variant="default" className="h-32">
  <div className="flex h-full items-center justify-center">
    Content
  </div>
</AuroraBackground>;

Custom colors

Custom colors with variant='custom'.

Aurora
import { AuroraBackground } from "@/components/aurora-background";

<AuroraBackground
  variant="custom"
  colors={[
    "hsla(180, 80%, 50%, 0.5)",
    "hsla(200, 70%, 45%, 0.3)",
    "transparent",
  ]}
  className="h-32"
>
  Content
</AuroraBackground>;

Made with ❤️ by Pulkit & Cursor :)

© 2026 Pulkit. All rights reserved

DMCA Verified

Last updated: