Repeating gradient math
A repeating-linear-gradient paints color stops along an axis set at the chosen angle and repeats that sequence forever in both directions, so the pattern never ends and never shows a seam. Hard edges need two stops at the same position: one ends the first color, the next starts the second. Since the axis runs perpendicular to the stripes, each stripe's on-screen width equals the stop spacing.