CSS Grid Pattern Backgrounds
Grid backgrounds are made from two linear-gradient() layers: one draws a thin horizontal line at the top of each tile, the other is turned 90deg to draw a vertical line down the side. background-size repeats the tile, and the lines join into a grid. Stack a second, larger grid on top and you get graph paper with bold major lines.
Every pattern here uses custom properties for its colors (--bg, --fg) and its cell size (--size), and most also have --line for line width. Keep line widths and cell sizes in whole pixels so the lines stay sharp.
Grids give a page structure without adding visual weight. They suit developer tools, dashboards, technical landing pages, notebook-style apps and blueprint themes. For the popular dark grid look, set --bg to a deep color and --fg a few shades lighter. Each pattern also comes as Tailwind v4 classes.