Skip to content
Musterli

Stripes

Stripes CSS pattern

Wide stripes at any angle you like.

Customize in the editor

Change 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: repeating-linear-gradient(45deg, #38bdf8 0px 7.5px, transparent 8.5px 23.5px, #38bdf8 24.5px 32px);
background-size: 100% 100%;
background-position: 0 0;

Tailwind

bg-[#0f172a] [background-image:repeating-linear-gradient(45deg,_#38bdf8_0px_7.5px,_transparent_8.5px_23.5px,_#38bdf8_24.5px_32px)] [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.

All CSS patterns
  • Candy Stripes

    Two colors with narrow gaps, like a candy cane.

    Stripes

  • Pinstripes

    Fine lines with lots of space, elegant and understated.

    Stripes

  • Gingham

    Translucent stripes in both directions create the classic check.

    Stripes

  • Plaid

    Wide and narrow stripes in two colors, crossed like woven tartan.

    Stripes

  • Barcode

    Irregular lines like a barcode, decorative and not machine readable.

    Stripes