About CSS Pattern Generator
Pick a pattern, set the tile size, thickness and two colors, and the preview repeats it across a panel as you adjust. The result is plain CSS: a few gradient layers with a background size, and no image file to host or load.
Stripes run horizontally, vertically or along either diagonal, and dots can be offset into a half-drop layout. Turn the background off to lay the pattern over a color, photo or gradient you already have.
How it works
- Each pattern is one square tile drawn with linear, radial or conic gradients that change color at hard stops instead of blending.
- background-size makes the browser repeat that tile across the element, and background-position offsets the layers that need it, such as the zigzag and staggered dots.
- The settings are kept in the page address, so a pattern can be bookmarked or shared as a link.
Questions
Why are there no waves here?
Gradients draw straight edges and circles well, but not smooth curves. For waves, use the pattern generator, which writes an SVG or PNG tile instead.
Do the edges look sharp at every size?
Straight stripes, grids and checks stay crisp. Diagonals and zigzags can look slightly stepped at small tile sizes because browsers do not smooth hard gradient stops. Dots get a one-pixel soft edge so they stay round.
Which browsers support this CSS?
Every current browser. Checks use conic-gradient, which has been supported in Chrome, Edge, Safari and Firefox since 2021.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.