How the pattern is compiled
Each pattern family maps to one or more CSS gradient functions. Stripes become a repeating-linear-gradient with two color stops per stripe; the checkerboard becomes a conic-gradient split into four 90-degree quadrants; dots become a radial-gradient of a small solid circle fading out; grids layer two perpendicular repeating-linear-gradients. The snippet sets background-image to that value and background-color to the lighter color, and the browser's default background-repeat tiles it edge to edge.