UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { PrismKnot } from "@/components/scenes/prism-knot";
export default function Background() {
return (
<PrismKnot
className="h-svh w-full"
coreColor="#ffffff"
midColor="#ff5ca8"
rimColor="#4d7cff"
accentColor="#ffd166"
backgroundColor="#06060b"
windings={2}
loops={3}
tube={0.34}
bars={7}
ior={1.5}
dispersion={4}
iridescence={0.25}
roughness={0.04}
thickness={1.2}
barBrightness={1.3}
reflections={0.45}
bloom={0.35}
spin={0.22}
drift={0.05}
tilt={0.45}
burst={1}
quality="auto"
/>
);
}Colours
Controls
A full-bleed three.js glass torus knot turning in front of drifting bars of coloured light. The glass refracts the bars and splits their edges into rainbow fringes; the cursor tilts it and a click pops it. Glass, colours and motion are all props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| coreColor | string (hex colour) | "#ffffff" | Glass tint |
| midColor | string (hex colour) | "#ff5ca8" | Light 1 |
| rimColor | string (hex colour) | "#4d7cff" | Light 2 |
| accentColor | string (hex colour) | "#ffd166" |
More from Infinity UI
More in 3D Scenes
View all
RemixPebble Cluster
















