Grid background

Also called grid pattern, dot pattern, striped pattern, hexagon pattern, or graph paper background

A decorative background of thin grid lines, dots, stripes, or hexagons, often faded toward the edges, used behind hero sections and product shots.

What is Grid background?

A grid background repeats a simple pattern, such as square lines, a dot grid, diagonal stripes, or a honeycomb of hexagons, across a section. CSS draws most of them without images: linear-gradient() layers make lines, radial-gradient() makes dots, and background-size sets the spacing. Hexagons need a small SVG tile, used as a background-image or as a mask-image over a theme color. A radial mask-image fades the pattern out toward the edges, so it frames the content instead of filling the whole screen.

It gives developer tools, AI products, and landing pages a technical, blueprint feel, and it adds texture to empty hero space without distracting from the headline.

Keep lines faint, around 5 to 10% contrast against the background, and line the pattern up with your layout spacing so content seems to sit on the grid. Use theme colors so the pattern works in both light and dark mode.

Often confused with

CSS Grid
CSS Grid is a layout system for placing elements in rows and columns. A grid background is only a decorative pattern.
All terms

Mask

A CSS technique that uses an image or gradient to set how visible each part of an element is, often used to fade edges softly.

Hero section

The large first section at the top of a landing page, with a headline, a short subhead, a call to action, and a visual.

Retro grid

A neon floor grid in perspective that slides toward the viewer and fades out at the horizon, borrowed from 1980s synthwave art.

Grain texture

A fine layer of random noise placed over a gradient or image to add a tactile, printed feel and hide color banding.