Aurora Background
ProSlow, blurred color fields that drift behind your content.
Installation
pnpm dlx shadcn@latest add @viewport/aurora-background
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| colors | [string, string, string]Three CSS colors for the blobs. Defaults to the theme's brand colors. | ["var(--brand)", "var(--brand-2)", "var(--brand-3)"] |
| blur | numberBlur radius in pixels. Lower it on low-end devices. | 80 |
| intensity | numberOverall strength from 0 to 1. | 0.55 |
Accessibility
- Decorative layer is aria-hidden and ignores pointer events.
- Animates transform only, so it never triggers layout.
- Respects prefers-reduced-motion.