CSS Dotted Background Patterns

Dot patterns are built from radial-gradient(): each tile draws one circle with a hard edge, and background-size repeats it across the element. Shifting a second copy of the circle by half a tile turns a straight grid into staggered polka dots.

Every pattern here uses the same custom properties: --bg for the background, --fg for the dots and --size for the spacing. Many also have a --dot property for the dot size. Change those on any element and the pattern updates. There are no image files to swap.

Dot backgrounds work well behind empty states and pricing sections. A faint dot grid also makes a “canvas” for whiteboard and notebook-style interfaces. Keep the contrast between dots and background low if text sits on top.