Skip to content
Musterli

Stripes

Tricolor Stripes CSS pattern

Equal stripes in two colors plus the background.

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: #fef3c7;
background-image: repeating-linear-gradient(0deg, #b45309 0px 16px, #0f766e 16px 32px, transparent 32px 48px);
background-size: 100% 100%;
background-position: 0 0;

Tailwind

bg-[#fef3c7] [background-image:repeating-linear-gradient(0deg,_#b45309_0px_16px,_#0f766e_16px_32px,_transparent_32px_48px)] [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
  • Stripes

    Wide stripes at any angle you like.

    Stripes

  • 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