UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { SpiralGalaxy } from "@/components/scenes/spiral-galaxy";
export default function Background() {
return (
<SpiralGalaxy
className="h-svh w-full"
coreColor="#ffe2a8"
midColor="#ff7a59"
rimColor="#6d5cff"
accentColor="#ffffff"
backgroundColor="#05040b"
count={60000}
arms={3}
twist={2.6}
scatter={0.42}
thickness={0.22}
bulge={0.12}
pointSize={1}
brightness={1}
twinkle={0.35}
spin={0.12}
shear={1.6}
tilt={58}
parallax={0.6}
cursorStrength={0.6}
quality="auto"
/>
);
}Colours
Controls
A full-bleed three.js spiral galaxy: tens of thousands of stars in curved arms around a glowing bulge, with differential rotation, twinkle, cursor push and camera parallax. Colours, shape and motion are all props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| coreColor | string (hex colour) | "#ffe2a8" | Core |
| midColor | string (hex colour) | "#ff7a59" | Arms |
| rimColor | string (hex colour) | "#6d5cff" | Rim |
| accentColor | string (hex colour) | "#ffffff" |
More from Infinity UI
More in 3D Scenes
View all
RemixPebble Cluster
















