Grainient
Documentation Index
Fetch the complete documentation index at: /llms.txt. Use this file to discover all available pages before exploring further.
Blend three colors into a warped, animated gradient with controllable film grain.
grainient-demo
Overview
Grainient creates a soft three-color field with independent controls for warping, rotation, tone, and grain. Use it when a product moment needs an organic background that still feels designed and controllable.
Installation
Usage
import { Grainient } from "honestui/shaders"
<div className="h-80">
<Grainient
className="size-full"
color1="#ffb257"
color2="#d8d3c5"
color3="#335c67"
grainAmount={0.08}
/>
</div>Accessibility
Use Grainient as decoration and keep readable content in a separate foreground layer. The component pauses while it is offscreen or the document is hidden; gate it behind your reduced-motion preference when continuous movement is not appropriate.