A background pattern that ships as a data URI needs no network request, no build step and no separate file. Pick a style, set the colours, and take the finished CSS rule.
What you can control
- Six pattern styles with different visual weights, from a light dot grid to heavy triangles.
- Leave the colours blank and they derive from the seed, keeping a set of patterns visually related.
- Three output modes: raw SVG for editing, a data URI for embedding, or a complete CSS rule to paste.
- Tile size is adjustable, and every pattern repeats seamlessly at that size.
Testing ideas
- Seams. Tile the pattern across a large area and look for seams at tile edges.
- CSS output. Use the CSS background rule to drop a pattern into a stylesheet without an image request.
- Contrast. Put text over the pattern and check readability against WCAG contrast guidance.
- File size. Compare tile sizes; a data-URI background is inlined in every stylesheet that uses it.
What this is not
Base64 encoding adds about a third to the file size. For a pattern much above 5 KB, a separate .svg file will load faster than an inline data URI.