Stripes
Gingham CSS pattern
Translucent stripes in both directions create the classic check.
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: repeating-linear-gradient(0deg, #e11d4880 0px 12px, transparent 12px 24px), repeating-linear-gradient(90deg, #e11d4880 0px 12px, transparent 12px 24px);
background-size: 100% 100%, 100% 100%;
background-position: 0 0, 0 0;Tailwind
bg-[#fff1f2] [background-image:repeating-linear-gradient(0deg,_#e11d4880_0px_12px,_transparent_12px_24px),_repeating-linear-gradient(90deg,_#e11d4880_0px_12px,_transparent_12px_24px)] [background-size:100%_100%,_100%_100%] [background-position:0_0,_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.