Skip to content
VenusUI
Get started

Aurora Background

Soft, blurred color fields that drift slowly behind content.

Preview

Installation

npx shadcn@latest add @venusui/aurora-background

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/aurora-background.tsx

Usage

The code behind the preview above.

aurora-background-demo.tsx

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

export default function AuroraBackgroundDemo() {
  return (
    <AuroraBackground className="flex h-64 w-full max-w-xl items-center justify-center rounded-xl border bg-card">
      <p className="text-3xl font-semibold tracking-tight">Northern lights</p>
    </AuroraBackground>
  )
}

API reference

PropTypeDefaultDescription
colors[string, string, string]indigo, cyan, emeraldThree blob colors.
intensitynumber0.35Overall strength, 0–1.

All <div> props, including className and children.

Requirements

  • Tailwind CSS v4. The CLI adds the aurora keyframes. Works in Server Components.

Customization

  • Use brand colors at a low intensity so text stays readable.
  • Give the wrapper a size and rounded corners, e.g. a card or hero.

Accessibility

  • Decorative layer; check text contrast over the brightest blob.
  • Still with reduced motion.

Troubleshooting

Blobs show outside the box.
The wrapper uses overflow-hidden; keep it.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.
Loading preview

Background Beams

Backgrounds

Curved lines across a section with light traveling along them.

Loading preview

Beam Rain

Backgrounds

Beams of light fall to the floor and burst into sparks when they land.

Loading preview

Lamp

Effects

A glowing bar casting a cone of light that opens over the content below.