reference: CSS linear-gradient() function (w3schools.com)

syntax

linear-gradient

element {  background-image: linear-gradient(_DIRECTION_, _COLOR-1_ _POSITON-1_, _COLOR-2_ _POSITION-2_, _ETC_);}

– note that direction, color, and position are just my own arbitrary names for the values –

repeating-linear-gradient

element {  background-image: repeating-linear-gradient(_DIRECTION_, _COLOR-1_ _POSITON-1_, _COLOR-2_ _POSITION-2_, _ETC_);}

examples

Tryit Editor w3schools: repeating linear gradient

to make a hard edge between two colors (aka solid stripes!), list the same position for both colors

#grad5 {  background-image: repeating-linear-gradient(45deg, red 0px, red 10px, yellow 10px, yellow 20px);}