CSS Geometric Background Patterns

Geometric patterns push CSS gradients further than dots and stripes. Waves are built from rings drawn with radial-gradient() and cut in half by the tile edges. Triangles and zigzags come from linear-gradient() layers at angles, and many shapes use conic-gradient(), which can split a tile into wedges.

The trick in every case is the tile. Each pattern draws one small piece inside background-size, placed so its edges line up with the next tile, and the browser repeats it to fill the element. That’s why these patterns stay seamless at any size.

All of them are customizable through custom properties: --bg and --fg for colors, --size for scale, and extras like --stroke for line width. Use geometric patterns for playful hero sections, section dividers, packaging-style brand pages and footers. Each pattern also comes as Tailwind v4 classes.