InstantPalette

Seamless pattern generator

Pick a pattern, color it with your palette and copy one tile that repeats with no visible seam.

Colors

Background
5 of 5

Pattern

4 x 4
160 px
0%

Export

Format

CSS

The tile is inside the rule. No file to host.

                    

How to use it

You choose the shapes and the spacing. The tool draws one square tile and repeats it, and you take that tile away as CSS, SVG or PNG.

  1. Bring your colors. If you came from another InstantPalette tool, your palette is already in the bar at the top. Press Generate there for a new one, and lock any color you want to keep.
  2. Choose a pattern. The ten thumbnails are drawn in your own colors.
  3. Set Cells per tile and Tile size. More cells give more variety before the design repeats. Tile size is how large one tile appears on the page, from 40 to 320 pixels.
  4. Adjust the gap or weight, and turn the pattern where a rotation is offered. Press Shuffle to deal the colors and shapes again.
  5. Pick the background color and how many palette colors to use. Two or three make a calm surface.
  6. Press Show one tile to see the piece that repeats, then copy the CSS, or download the SVG tile, a PNG tile or a 1920 x 1080 wallpaper.

How a seamless tile works

A repeating background is one small picture laid edge to edge, like floor tile. The browser puts the right edge of one tile against the left edge of the next, and the bottom edge against the top. If a circle is cut off on the right, its missing part has to appear on the left at exactly the same height, or you see a line.

There are three ways to get this right, and each pattern here uses the one that fits it. Quarter circles, leaves, checks and crosses keep every shape inside its own cell, so the edge of the tile is one more cell border. Triangles, scales, offset dots and Memphis shapes do cross the edges, so each of those is drawn again one tile away, up to four times for a shape that sits on a corner. Stripes and waves fit a whole number of repeats into the tile in both directions. A stripe at 45 degrees crosses the top of the tile as often as it crosses the side, so the lines meet.

Choosing a tile that works

People notice repeats. With two cells per tile the eye finds the rhythm at once, which suits checks and dots. With six or eight cells the random patterns take longer to repeat and look more like a drawing. The CSS rule grows with the number of cells, because every shape is written out.

Text on a pattern is harder to read than text on a flat color. Use two or three colors that are close in lightness, or put the text on a panel filled with the background color. Text placed directly on the pattern has to pass against every color in it, and the contrast checker shows all those pairs at once.

Questions

What makes a pattern seamless?

A seamless pattern can be repeated in both directions without a visible line where the copies meet. Every shape that leaves the tile on one side comes back in at the same height on the opposite side, so a grid of copies reads as one continuous surface.

How do I use the CSS?

Copy the rule, paste it into your stylesheet and add the pattern class to an element, or move the three lines into a rule you already have. The tile is written into the rule as a data URL, so there is no image to host. The background-size line sets how large one tile appears.

Should I export SVG or PNG?

Use SVG for websites and design software. It stays sharp at any size and you can edit its colors later. Use PNG where SVG is not accepted, such as slide decks, chat apps and many print shops. The 2x and 4x sizes are for high-density screens and print.

Which tile size should I pick?

Small tiles read as texture and large tiles read as illustration. For a page background, 120 to 200 pixels is a good start. The slider moves in steps that keep every cell a whole number of pixels, so cell edges stay sharp.

Why does the rotation only move in 45-degree steps?

A square tile repeats along two directions, so a rotated pattern has to line up with both. Steps of 45 and 90 degrees do. An angle such as 30 degrees would miss by a few pixels at every edge. Patterns that gain nothing from turning hide the control.

What does Shuffle change?

Shuffle picks a new seed number. In the cell patterns it changes the colors and directions of the cells, in Memphis the shapes, positions and angles, and in stripes and waves the order of the colors. The seed is part of the page link, so the same link draws the same tile.

Does this tool upload anything?

No. The tile is drawn in your browser and every file is made on your device. Your palette and settings sit in the address bar, and the palette is also kept in this browser so the other color tools can open it.