Geometric
Checkerboard CSS pattern
Alternating squares, as crisp as a chessboard.
Customize in the editorChange colors, size and opacity, then export as CSS, SVG or PNG.
Code
Paste the lines into your element's rule. The pattern repeats by itself and adapts to any size.
CSS
background-color: #f1f5f9;
background-image: conic-gradient(from 0deg at 24px 24px, #334155 0deg 90deg, transparent 90deg 180deg, #334155 180deg 270deg, transparent 270deg 360deg);
background-size: 48px 48px;
background-position: 0 0;Tailwind
bg-[#f1f5f9] [background-image:conic-gradient(from_0deg_at_24px_24px,_#334155_0deg_90deg,_transparent_90deg_180deg,_#334155_180deg_270deg,_transparent_270deg_360deg)] [background-size:48px_48px] [background-position:0_0]How to use this pattern
Copy the CSS into the rule of the element that should carry the pattern, for example a section, a card or the body. The colors are hex values in the code and can be swapped directly. In the editor you change everything with sliders and can also export the pattern as SVG or PNG.