Grid Pattern

Pro

CSS line grid background with configurable cell size, line color, and edge fade.

Backgrounds · primitive · basic · none · zero dependencies

grid-pattern Backgrounds·preview

Background layer

Blueprint under the hero.

A one-pixel rule grid that dissolves at the edges, so it reads as structure instead of competing with the copy.

cellSize 44 · fade edges · zero JS

Grid Pattern

CSS line grid background with configurable cell size, line color, and edge fade.

Pro component

Join the waitlist to unlock all 14 components at launch.

Join the Pro waitlistor join free for 5 components at launch
Use it for
  • developer tool hero background
  • SaaS dashboard empty state grid
  • changelog and release notes page backdrop
  • documentation landing page texture
Props
Prop Type Default Description
className string Additional classes for the outer container — set width/height and positioning here.
lineColor string "rgba(255,255,255,0.06)" Color of the grid lines, any valid CSS color value.
cellSize number 40 Grid cell size in pixels.
fade "edges" | "none" "edges" Whether to fade the grid out toward the edges with a radial mask.
FAQ
Does Grid Pattern work with Next.js App Router?

Yes. It's a "use client" React component and works unchanged in both the App Router and Pages Router.

Are there any dependencies to install?

None. It's a pure CSS background-image with no JavaScript logic beyond prop handling.

Is it responsive?

Yes. It's an absolutely positioned fill layer; cellSize stays fixed in pixels so the grid density is consistent across viewports.

Does it respect prefers-reduced-motion?

There's nothing to disable — the component has no animation at all, so it's inherently safe for motion-sensitive users.