Geometric
Zigzag CSS pattern
Bold zigzag bands running across the surface.
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: #0f172a;
background-image: linear-gradient(315deg, #38bdf8 0% 23.9%, transparent 26.1% 100%), linear-gradient(45deg, #38bdf8 0% 23.9%, transparent 26.1% 100%), linear-gradient(135deg, #38bdf8 0% 23.9%, transparent 26.1% 100%), linear-gradient(225deg, #38bdf8 0% 23.9%, transparent 26.1% 100%);
background-size: 32px 32px, 32px 32px, 32px 32px, 32px 32px;
background-position: 16px 16px, 16px 16px, 0px 16px, 0px 16px;Tailwind
bg-[#0f172a] [background-image:linear-gradient(315deg,_#38bdf8_0%_23.9%,_transparent_26.1%_100%),_linear-gradient(45deg,_#38bdf8_0%_23.9%,_transparent_26.1%_100%),_linear-gradient(135deg,_#38bdf8_0%_23.9%,_transparent_26.1%_100%),_linear-gradient(225deg,_#38bdf8_0%_23.9%,_transparent_26.1%_100%)] [background-size:32px_32px,_32px_32px,_32px_32px,_32px_32px] [background-position:16px_16px,_16px_16px,_0px_16px,_0px_16px]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.