CSS Checkered Backgrounds

Checks are made by crossing two sets of stripes or by splitting a tile into quarters. conic-gradient() is the shortest way to draw a checkerboard: one gradient paints two opposite quarters of a tile, and background-size repeats it. Gingham and plaid layer semi-transparent stripes in both directions so the colors mix where they overlap.

Every pattern uses custom properties for its colors (--bg, --fg) and its square size (--size), so you can match it to your palette without touching the gradients.

A light gray checkerboard is the standard “transparent” backdrop for image editors and color pickers. Gingham and plaid suit food, picnic and seasonal designs. Bold black-and-white checks work for racing, retro and game themes.