From Infinity UI by Infinity UI, LicenseRef-InfinityUI license.
UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { HatchLight } from "@/components/effects/hatch-light/hatch-light";
export default function Background() {
return (
<HatchLight
className="h-svh w-full"
ink="#1d1b18"
backgroundColor="#efe7d6"
stroke="cross"
lineSpacing={9}
lineWidth={1.4}
layers={3}
angle={-32}
curl={0.28}
formScale={1.05}
offsetX={0}
offsetY={0}
wobble={0.35}
bleed={0.3}
grain={0.25}
showLamp={true}
redrawSpeed={8}
lampDrift={1}
lampReach={2}
lampStrength={1.15}
interactive={true}
/>
);
}Colours
Controls
A pen drawing that redraws itself: three soft stones on paper, shaded only with hatching, and the cursor is the lamp that thins the strokes it shines on. A click re-inks it in the next stroke style. One shader pass drawn a few times a second on a shared WebGL2 context; a still drawing under reduced motion.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| ink | string (hex colour) | "#1d1b18" | Colour of the pen strokes. |
| backgroundColor | string (hex colour) | "#efe7d6" | Colour of the sheet of paper the drawing is on. |
| stroke | "hatch" | "cross" | "stipple" | "squiggle" | "cross" | The mark that makes the shade: parallel lines, crossed lines, dots or a scribble. A click moves to the next one. |
| lineSpacing | number (6.5 to 16) |























