CSS Pattern Generator
Dots, stripes, grid, checkerboard, diamond weave, graph paper and starfield backgrounds built from pure CSS gradients -- with angle, thickness, opacity and colour controls, presets, randomize, and export to CSS, Tailwind, SCSS or React.
What this tool does
Builds a repeating background pattern entirely from CSS
gradients — no PNG or SVG file to host, load, or keep in sync
with a colour scheme. Every pattern is one
background-image declaration.
Seven pattern types
Dots, stripes, a line grid, a checkerboard, a diamond weave,
graph paper (with both major and minor gridlines), and a
starfield made of two overlapping dot layers at different sizes
and opacities for depth. Each is a real gradient trick — a
repeating-linear-gradient for stripes, layered
radial-gradients for dots and starfield, and so on —
rather than a raster image behind the scenes.
Tuning the look
Pattern colour, background colour, opacity, spacing, line thickness, and (for stripes) angle each have their own control, plus an X/Y offset to shift the whole pattern within its tile. Because it's pure CSS, the pattern colour can be swapped for a brand colour without regenerating an image asset.
Presets and randomizing
Seven presets cover common looks — Subtle Dots, Blueprint Grid, Graph Paper, Candy Stripes, Chessboard, Diamond Weave, and Starfield Night — plus a randomize button that picks a pattern type, colours, and spacing together for quick exploration.
Getting the CSS out
Export as plain CSS, a Tailwind arbitrary-value class string, SCSS, or a React inline style object, copyable with one click.
Privacy
Everything runs locally in your browser -- nothing you build is sent to a server.