Fast • private • developer-friendly

CSS Stripes Pattern Generator

Set the stripe angle, width and colors to build a repeating-linear-gradient background, preview it live and copy ready-to-use CSS.

Your stripes, live

Stripe controls

Angle
45°
Stripe width (px)
16px
Stripe colors
Ready-to-use CSS

How to build CSS stripe patterns

Choose an angle for horizontal, vertical or diagonal stripes, set the width of each band, and add two or more colors. This generates a repeating-linear-gradient background with hard color stops for crisp stripes, or turn on soft edges for a blended candy-stripe effect. Copy the CSS and use it as a background on any element.

Any angle

Rotate stripes from 0 to 360 degrees for horizontal, vertical or diagonal patterns.

Multi-color bands

Add as many stripe colors as you like and they repeat automatically across the pattern.

Pure CSS, no images

Repeating gradients need no image files, keeping your page lightweight and crisp at any resolution.

CSS stripes pattern generator FAQ

How do CSS stripe patterns work?

Stripes are built with repeating-linear-gradient, which repeats hard color-stop transitions at a fixed angle and width to create bands of color.

Can I make diagonal stripes?

Yes. Set the angle to any value between 0 and 360 degrees, with 45 or 135 degrees producing classic diagonal stripes.

Can I use more than two colors?

Yes. Add extra stripe colors and they will repeat in sequence across the pattern.

Does this work as a background for any element?

Yes. Apply the generated background declaration to any element, including page backgrounds, cards, buttons and badges.

Is the generated CSS lightweight?

Yes. Repeating gradients are pure CSS with no images, so they add no extra HTTP requests or file weight.