Stripes
Pinstripes CSS pattern
Fine lines with lots of space, elegant and understated.
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: repeating-linear-gradient(90deg, #334155 0px 1px, transparent 1px 16px);
background-size: 100% 100%;
background-position: 0 0;Tailwind
bg-[#f1f5f9] [background-image:repeating-linear-gradient(90deg,_#334155_0px_1px,_transparent_1px_16px)] [background-size:100%_100%] [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.