UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { Grainient } from "@/components/ui/grainient";
export default function Background() {
return (
<Grainient
className="h-svh w-full"
colors={["#ff784f","#ffc24a","#e2552b","#2d2824"]}
speed={1}
warp={0.5}
grain={0.35}
seed={1}
mouseReact={true}
/>
);
}Colours
Controls
A grainy gradient mesh of up to four colors that slowly morph, with a seed for stable compositions.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string (hex colour)[] | ["#ff784f", "#ffc24a", "#e2552b", "#2d2824"] | Up to four colours that blend and morph into each other. |
| speed | number (0 to 3) | 1 | Morph speed multiplier. |
| warp | number (0 to 1) | 0.5 | How much the colour fields bend and swirl. |
| grain | number (0 to 1) | 0.35 | Film grain amount. |
| seed |






























