# Grain Background

Grain Background is a free, MIT-licensed standalone component from AI Canvas (https://aicanvas.me): it belongs to no design system and works in any React + Tailwind app. Index of every component and install setup: https://aicanvas.me/llms.txt

A grain background of randomly scattered dots. Hover to illuminate them with a soft Gaussian glow and organic connection lines.

- Category: Backgrounds
- Built with: Canvas, Tailwind CSS
- License: MIT
- Page: https://aicanvas.me/components/noise-bg

## Install

```bash
npx shadcn@latest add @aicanvas/noise-bg
```

Needs a free AI Canvas account. Signed out, the command exits 0 but writes a placeholder (an `AccountRequired` notice); check for it before reporting success. Token setup: the Install section of https://aicanvas.me/llms.txt.

AI agents can also get its install command from the read-only AI Canvas MCP server (`npx -y @aicanvas/mcp`) and run it. Setup: https://aicanvas.me/mcp

## Use it

It installs to `components/aicanvas/noise-bg.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import NoiseBg from '@/components/aicanvas/noise-bg'

<NoiseBg />
```

It takes no props.

## About

Grain Background scatters thousands of tiny dots at random across a 2D canvas, with a subtle Gaussian glow that pools where they cluster. On hover, organic connection lines stretch between the dots near your cursor, briefly turning the noise into a network. It is a quiet, ambient background built for editorial layouts, hero sections, and any long-form page that needs texture without color competition. The whole effect runs in one canvas with Tailwind for the surrounding container.

Use cases: Hero section, Editorial, Landing page.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants Grain Background rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/noise-bg.

## Related

- [Distortion Grid](https://aicanvas.me/components/distortion-grid.md): An animated grid background. Thin lines undulate in slow sweeping waves, and hovering repels the grid fabric outward from your cursor.
- [Spider Web](https://aicanvas.me/components/particle-constellation.md): An animated spider web background. Silk strands bow slowly at rest, and hovering pushes each node so it bounces back under tension.
- [Diamond Grid](https://aicanvas.me/components/diamond-grid.md): A faint canvas grid of diamonds. Seeded sparks send light outward until fronts meet.
- [Wave Lines](https://aicanvas.me/components/wave-lines.md): An animated line background. Dense vertical lines ripple with two layered sine waves, bunching and breathing. Hover to send waves across the canvas.
- [Grid Lines](https://aicanvas.me/components/grid-lines.md): A grid background of dots connected by thin lines. The cursor lights a radial glow and bulges the grid outward like a lens as it moves.
