Skip to main content

SVG Patterns Gallery

A gallery of sixteen decorative motifs drawn from SVG path commands — a reference for stock certificates, official seals, branded letterheads and any document that needs decorative chrome.

  • Curves and spirals. An Archimedean spiral of half-circle arcs, a five-petal rose of quadratic curves, a Lissajous figure of two cubic curves, a heart and a stack of sine waves.
  • Radial symmetry. A sunburst of twelve rays, a mandala of rotated hexagons, concentric rings, a yin-yang, and a flower of life of seven overlapping circles.
  • Geometric borders and lattices. A Greek key meander, a five-point star, a quatrefoil, a chevron stack and a checkerboard.
  • Text along a curve. A textPath following the wave drawn beneath it, its words taken from the data file.
  • One labelled grid per page. Each landscape page is a single svg divided into eight cells, every motif named with a one-line note on how it is drawn.
  • Plus page titles, subtitles and a closing byline bound from data, and three stroke styles that carry the whole palette.

Features used: PDF/A-2b conformance, SVG, data binding, headers and footers

How it's built​

Each page is a single svg with a 720 × 400 viewBox: three vertical paths and one horizontal path split it into eight cells of 180 × 200, and every motif, label and note is placed in that one coordinate system. A cell's label and note are text elements at the cell's centre line, centred by their style's textAlign (SVG).

{ "svg": { "viewBox": [720, 400], "children": [
{ "path": { "d": "M 180 0 L 180 400", "style": "cellRule" } },
{ "path": { "d": "M 360 0 L 360 400", "style": "cellRule" } },
{ "path": { "d": "M 540 0 L 540 400", "style": "cellRule" } },
{ "path": { "d": "M 0 200 L 720 200", "style": "cellRule" } },
{ "path": { "d": "M 588 105 L 588 45 L 612 45 L 612 99 L 596 99 L 596 53 L 622 53 L 622 91 L 604 91 L 604 61 L 632 61 L 632 83 L 612 83 L 612 73 L 642 73 L 642 105 Z", "style": "patternStroke" } },
{ "text": { "x": 630, "y": 160, "text": "Greek Key Meander", "style": "cellLabel" } },
{ "text": { "x": 630, "y": 175, "text": "M/L/H/V stepped rectangular path", "style": "cellNote" } } ] } }

Three stroke styles carry the whole palette: cellRule (0.4 pt, light grey), patternStroke (1 pt navy) and patternThin (0.5 pt navy), each with "fill": "none".

Curves from path commands​

Every motif is plain path data. The five-petal rose is five closed quadratic curves (Q) from one centre, the Lissajous figure two interlocking cubic curves (C), and the spiral a chain of half-circle arcs (A) whose radius grows by 2 at each turn. Two petals of the rose:

{ "svg": { "viewBox": [720, 400], "children": [
{ "path": { "d": "M 270 75 Q 250 35 270 35 Q 290 35 270 75 Z", "style": "patternStroke" } },
{ "path": { "d": "M 270 75 Q 304 51 320 68 Q 333 86 270 75 Z", "style": "patternStroke" } } ] } }

Text along a curve, from data​

The wave text is a textPath that follows the same smooth quadratic wave drawn beneath it, centred on the curve by textAnchor and startOffset. Its words come from the data file, so the band can carry a name or a serial without touching the drawing (Data binding):

{ "svg": { "viewBox": [720, 400], "children": [
{ "path": { "d": "M 410 275 Q 420 250 430 275 T 450 275 T 470 275 T 490 275", "style": "patternThin" } },
{ "textPath": { "d": "M 410 275 Q 420 250 430 275 T 450 275 T 470 275 T 490 275",
"text": "$data.gallery.patterns.spiralTextLong", "textAnchor": "middle", "startOffset": "50%",
"style": "spiralText" } } ] } }

Here spiralTextLong is "SVG PATH · TEXTPATH"; the titles and subtitles above each page come from the same data file.