Aurora Background
ComponentsAurora Background
BackgroundsNew

Aurora Background

A moving wash of light that gives your next big idea its own atmosphere.

React + CSS
A LITTLE ATMOSPHERE GOES A LONG WAY

A space
to dream.

Light, with a life of its own.
Live component. Go ahead, interact.
Accent
01

Installation

Run this in your shadcn-configured React project. The component and stylesheet are added together.

TERMINAL
npx shadcn@latest add http://localhost:5173/r/aurora-background.json

This command uses the current site address. For localhost, keep this preview running on the same computer. Files follow your configured components alias.

02

Usage

Import the component and make the details your own.

TypeScript
import { AuroraBackground } from '@/components/anticraft/AuroraBackground';

export function Example() {
  return (
    <AuroraBackground style={{ padding: '4rem 2rem', borderRadius: '1rem' }}>
      <h1>Make something that moves people.</h1>
    </AuroraBackground>
  );
}
03

Props

PropTypeDefaultDescription
childrenReactNode—Content displayed above the decorative background.
speednumber16The ambient animation duration in seconds, clamped between 2 and 180.
pausedbooleanfalsePauses the background animation.
color1string'#e89c62'The first aurora color, as a CSS color.
color2string'#9280da'The second aurora color, as a CSS color.
color3string'#edd1a3'The third aurora color, as a CSS color.
classNamestring''Additional classes. Native div attributes and inline styles are supported.
04

Motion & accessibility

Considered by default.

The ambient animation becomes a static gradient when reduced motion is preferred.

Use semantic content and meaningful labels in your composition. Check contrast and keyboard behavior with your own styles and content.