UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { NightSwell } from "@/components/scenes/night-swell";
export default function Background() {
return (
<NightSwell
className="h-svh w-full"
coreColor="#d8fbff"
midColor="#123a52"
rimColor="#cfe0ff"
accentColor="#ffffff"
backgroundColor="#03060c"
detail={220}
waveHeight={0.7}
waveLength={1}
chop={0.45}
direction={0}
crestGlow={1.4}
foam={0.5}
moonHeight={14}
moonAngle={12}
moonStrength={1.6}
stars={0.6}
haze={0.4}
bloom={0.6}
speed={0.7}
swell={0.8}
ripple={1}
parallax={0.3}
quality="auto"
/>
);
}Colours
Controls
A full-bleed three.js open ocean at night under a low moon. Long peaked swells roll toward the camera and, where wave groups pile up, their crests break into glowing foam; the moon lays a glitter path across the water and stars fill the sky. The cursor lifts a swell and a click sends a ring of waves out across the sea. Colours, waves, foam, light and motion are all props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| coreColor | string (hex colour) | "#d8fbff" | Crest glow |
| midColor | string (hex colour) | "#123a52" | Water |
| rimColor | string (hex colour) | "#cfe0ff" | Moonlight |
| accentColor | string (hex colour) |
More from Infinity UI
More in 3D Scenes
View all
RemixPebble Cluster
















