Polka Dot SVG Generator
Generate a configurable polka-dot SVG pattern with color, radius and spacing — exports as a CSS background.
Polka dot SVG: history, theory and practical usage
The polka dot pattern is one of the oldest decorative motifs in modern fashion and graphic design. The name comes from the polka, the Czech-Bohemian folk dance that exploded across European ballrooms in the 1840s and 1850s. Manufacturers of the era exploited the dance's popularity to sell anything they could: there were polka jackets, polka curtains and — crucially — polka-dot fabric, a regular array of circles printed on a contrasting background. The word stuck, the dance faded, and 180 years later the dots are still everywhere.
Polka dots reached pop-culture sainthood in the 1950s. Marilyn Monroe wore a polka dot bikini on the cover of Life; Disney drew Minnie Mouse in a red polka dot dress; and the song "Itsy Bitsy Teeny Weeny Yellow Polka Dot Bikini" hit number one in 1960. In contemporary art, Japanese artist Yayoi Kusama turned the dot into a conceptual obsession — her Infinity Mirror Rooms at Tate Modern and MoMA have been seen by millions, and dots became her signature mark of a worldview without hierarchy.
How an SVG polka dot pattern is built
The classical recipe in SVG is one <pattern> tile containing a single <circle>. The browser tiles it across whatever shape you fill — usually a full-page <rect>:
<svg width="100%" height="100%">
<defs>
<pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse">
<circle cx="10" cy="10" r="3" fill="#000"/>
</pattern>
</defs>
<rect width="100%" height="100%" fill="url(#dots)"/>
</svg>
For a denser, more organic feel, use a staggered layout: every other row is shifted by half a tile (the same hex-packing rule used by atoms in a 2D crystal). You can implement that by widening the tile to 2 * spacing and drawing two circles inside.
Sizes, colors and visual language
- Fine dots (1–3 mm) — elegant, understated; commonly used in menswear ties and shirts.
- Medium dots (5–10 mm) — the classic playful look of 1950s dresses and Minnie Mouse.
- Large dots (> 20 mm) — bold, graphic and editorial; used by Kusama and on statement packaging.
- Red on white — 1950s American diner, picnic blanket vibe.
- Navy on white — nautical, preppy, summer.
- Black on white — Audrey Hepburn elegance, fashion editorial.
CSS-only equivalent and Tailwind
For very simple polka backgrounds, a one-line CSS radial gradient is enough — no SVG required:
background: radial-gradient(circle, #000 2px, transparent 2px) 0 0/20px 20px;
In Tailwind, the same effect is achievable through an arbitrary value: bg-[radial-gradient(circle,#000_2px,transparent_2px)] bg-[length:20px_20px]. Reach for the SVG version when you need staggered dots, multiple sizes per tile, animation, or per-dot styling — things gradients cannot do.
Where polka dots work today
Beyond fashion, polka dots remain a workhorse of baby-shower invitations, party stationery, retro branding, food packaging and editorial illustration. In modern minimalist UI, a very low-opacity polka dot layer (under 8% opacity, fine dots) adds quiet texture to a hero section without competing with the foreground. The pattern is also one of the few that prints and renders on screen equally well — a major reason it survives across centuries.
FAQ
What dot size should I use? For UI texture, keep dots small (2–4 px radius, 20–30 px spacing) and lower opacity. For decorative branding, go bigger and saturated.
CSS-only or SVG? A single-color, aligned polka dot is fine with CSS radial-gradient. Choose SVG when you need staggered packing, more than one dot color per tile, or animated/transitioning dots.
How saturated should dot colors be? Match your brand. Pastel dots feel friendly and editorial; high-saturation primaries feel pop-art and Kusama-like.
Does the SVG file render in all browsers? Yes — <pattern> has been supported since IE9 and is rock-solid on every modern engine.
Related Tools
Handwriting Generator
Convert typed text into an image with handwriting appearance. Useful for adding a personal touch to digital work.
Resume Generator
Fill a simple printable A4 CV from a form with personal data, education and experience.
Favicon Generator
Generate a favicon from text/emoji in all common sizes (16, 32, 48, 64, 192, 512). PNG download.