Grid
Bricks CSS pattern
A running bond brick wall drawn as mortar lines.
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: #fff1f2;
background-image: linear-gradient(180deg, #e11d48 0px 2px, transparent 2px 24px, #e11d48 24px 26px, transparent 26px 48px), conic-gradient(from 270deg at 2px 22px, #e11d48 0deg 90deg, transparent 90deg 360deg), conic-gradient(from 270deg at 2px 22px, #e11d48 0deg 90deg, transparent 90deg 360deg);
background-size: 48px 48px, 48px 48px, 48px 48px;
background-position: 0 0, 0px 2px, 24px 26px;Tailwind
bg-[#fff1f2] [background-image:linear-gradient(180deg,_#e11d48_0px_2px,_transparent_2px_24px,_#e11d48_24px_26px,_transparent_26px_48px),_conic-gradient(from_270deg_at_2px_22px,_#e11d48_0deg_90deg,_transparent_90deg_360deg),_conic-gradient(from_270deg_at_2px_22px,_#e11d48_0deg_90deg,_transparent_90deg_360deg)] [background-size:48px_48px,_48px_48px,_48px_48px] [background-position:0_0,_0px_2px,_24px_26px]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.