Background Pattern Generator
NEWGrids, lines, checkerboards, waves, noise and geometric compositions from CSS gradients and SVG, combined in blended layers, checked on website sections in light and dark variants and exported to CSS, SVG and PNG.
Composition
Pattern layers
The first layer in the list lies on top, like the first background in CSS.
Section background
Pattern type
Geometry: dot grid
Position
Randomness and texture
Colour and blend
No layers: the section has only its background colour. Add a layer to edit it here.
Live preview
Pattern on the section: Main section
Live calculated output and details.
Repeat
No tile
Recent configurations
Import
JSON configuration from the export
Compare on
Variant A and variant B on the same section
Both variants in the same theme and at the same width. Copy CSS takes the rule of the chosen side without switching the variant.
Code export
Browser compatibility
Found a bug or missing something? Write to us
Scope and limits
What this tool covers
Backgrounds of CSS gradients and SVG images, worked out in your browser
The preview section is styled by the same rule as the CSS export. Text contrast comes from the pixels of the pattern under the text, not from the background colour. Browser versions come from MDN browser-compat-data; where the data is not certain, the list gives only the test result in this browser.
Help
FAQ
Which patterns can the studio build?
Thirteen types: a dot grid, a line grid, diagonal lines, crosshatch, a checkerboard, geometric shapes, waves, concentric circles, rays, a geometric composition, noise and grain, a layered gradient and a technical grid. Up to eight layers combine into one pattern, each with its own opacity and one of seven blend modes.
When does the studio use CSS and when SVG?
Wherever a pattern can be written as a CSS gradient, the export is plain CSS with no files. CSS cannot draw shapes, waves, compositions or grain, so those layers are SVG images written into the CSS. A grid turned by an angle that is not a multiple of 90° is drawn by SVG too, because CSS does not rotate a background tile. Each layer shows its technique and the reason for it.
How is the contrast of text on the pattern measured?
The studio draws the pattern in pixels at the size of the section and reads every pixel under the text that lies directly on the pattern. The weakest pixel decides, with a threshold of 4.5:1 for normal text and 3:1 for large text, as in WCAG 1.4.3. When the text fails, the studio gives the opacity of the strongest layer at which it passes.
Does the pattern have a seamless tile?
When every visible layer repeats, the studio works out their common repeat and exports it as a PNG and SVG tile. A gradient over the whole section, a fade or a rotation by any angle rule a tile out; the PNG and SVG then cover the whole section at the preview width, and the description names the layer that rules the tile out.
Does the export match the preview?
Yes. The preview section is styled by the same rule the CSS tab shows, with the values of one theme variant. The SVG and PNG files and the contrast measurement are drawn from the same layers, and the random seed makes one configuration always give the same picture.
Do my settings leave the browser?
No. The pattern, the previews, the files and the measurements are made in this tab. The settings and recent configurations are kept only in this browser, under the polprog_studios key; a shared link holds the configuration only when someone copies it.
