Pattern practice
Give a pattern room to repeat
Use spacing, scale, and a few deliberate comparisons to turn a repeated shape into a useful background.
Start with one small decision
A repeat begins with a mark and the space around it. Picture a row of small dots on paper: the dots provide the beat, while their gaps set its pace. Before choosing a complicated palette, decide what the pattern should do. A cover can give the pattern most of the room. A page of instructions usually needs a quieter margin. That intended role gives you something concrete to judge.
The examples here are illustrative. Their measurements are experiments to compare, not formulas for a particular mood.
Separate the mark from the interval
Mark size and repeat distance answer different questions. Imagine a 4-pixel dot repeated every 24 pixels. There are 20 pixels between neighboring dot edges along a row. Increase the distance to 32 pixels while keeping the dot unchanged, and the field opens up. Increase both together, and you enlarge the pattern while keeping its proportions. A studio may combine these changes in one scale control, so watch the preview as you move it.
In CSS, a tiled image's dimensions can be set with background-size. That controls the tile box; the drawing inside it determines how much of that box the mark occupies. MDN: background-size
Find the repeat boundary
For stripes, think of one complete sequence: one band in the first color, then one in the second. A repeating linear gradient restarts that sequence after the distance between its first and last color stops. That distance is the repeat period along the gradient's direction. Keeping it explicit makes later changes easier to understand. MDN: repeating-linear-gradient()
Shared stop positions make a sharp boundary between colors. Separated stops create a transition instead. For a clear two-color stripe, decide where one band ends and the next begins before adjusting the angle. MDN: Using CSS gradients
Change one thing and compare
Keep the colors fixed and compare three scales: small, medium, and large. Put each in the same sized area. Notice how many marks are visible, how much open space remains, and whether the pattern suggests rows, columns, or diagonal movement. Then choose a scale and compare colors. You now have a reason for each choice instead of a collection of unrelated favorites.
Save a quick note such as “larger checks leave four strong blocks across this cover.” The note records the relationship between the pattern and its container, which is more useful than calling the design balanced.
Check the edges in context
Look at a narrow panel as well as a wide one. A repeat can be regular while the outer edge cuts through a mark. Standard CSS background repetition fills an area with copies and may clip copies at its boundaries. A clipped edge alone does not mean the underlying repeat is broken. MDN: background-repeat
Finally, place the pattern beside the actual heading, image, or card it will accompany. Keep the color values and scale with your export. If you later change the container, revisit the crop and spacing there. A useful pattern is one whose rhythm still makes sense in the place you intend to use it.