UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { GalaxyField } from "@/components/scenes/galaxy-field";
export default function Background() {
return (
<GalaxyField
className="h-svh w-full"
coreColor="#fff1cf"
midColor="#ffb347"
rimColor="#a03a1e"
accentColor="#ffffff"
backgroundColor="#060403"
count={90000}
galaxies={46}
galaxySize={1.05}
flatness={0.18}
dust={0.08}
pointSize={1.15}
brightness={1.3}
twinkle={0.3}
spinSpeed={0.35}
tumble={0.06}
drift={0.04}
popIn={true}
parallax={0.8}
cursorStrength={0.5}
quality="auto"
/>
);
}Colours
Controls
A full-bleed three.js field of small tilted galaxies: each spins in its own plane and tumbles slowly, they pop in one by one, and the field turns so the depth reads. Colours, counts and motion are all props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| coreColor | string (hex colour) | "#fff1cf" | Core |
| midColor | string (hex colour) | "#ffb347" | Body |
| rimColor | string (hex colour) | "#a03a1e" | Rim |
| accentColor | string (hex colour) | "#ffffff" |
More from Infinity UI
More in 3D Scenes
View all
RemixPebble Cluster
















