Guide
Prepare a layered SVG for many variations.
SVGenic, the SVG variation generator, reads the structure of your file. A few habits when you draw keep the layer tree clean, the attributes readable and the variations quick to describe.
01
One folder per variable element
Put each thing that will change, a hat, a background, an accessory, in its own group: each one can become an attribute of your editions. Groups become folders; a folder can receive a palette, be hidden, get a stroke, or join a variant set as a single variant with everything inside it.
02
Name your layers
Layer names become the default names of attributes and values in the JSON data, for example Hats: Cap. Illustrator, Inkscape and Figma names are read; automatic names such as path34 are ignored and you can rename inside SVGenic.
SVGenic detects variant sets from your names and offers to create them in one click: a named folder whose children are named alternatives (Hats → Beret, Cap, Top hat), or sibling layers named Attribute/Value, Attribute - Value or Attribute: Value. Add #5 at the end of a value to set its weight, and start a name with _ for a fixed layer that never varies.
- Hats/
- Beret
- Cap
- Top hat
{
"trait_type": "Hats",
"value": "Cap"
}
A variant set made from the Hats folder takes the folder name, and each layer inside is a value. In an edition where Cap is drawn, its JSON data file lists this attribute. You can rename both in SVGenic. Generating variant sets needs the paid plan.
03
Keep colours plain
Flat fills and strokes are detected and recolourable, whether set as attributes, in a <style> block or inline. Gradients, patterns and images are kept as they are but cannot be recoloured. Use one colour per element you want to vary. Flat colours also give the cleanest pixel art.
04
Vectorise text
Convert text to outlines before exporting so the result looks the same everywhere. Embedded fonts are not kept.
05
Export settings
- SVG 1.1, keep groups and layer names (Illustrator: “Object IDs: Layer Names”; Figma: “Include id attribute”).
- No external images: embed them or leave them out.
- Set a
viewBox; it defines the frame of every PNG and print file. - A CSS background on the root is detected and offered as a stage colour, but it is not part of the drawing: add a collection background in SVGenic if you want one in the files.
- Limits: 10 MB per file, 2,000 colourable shapes, 256 nesting levels.
- Check the structure of your exported SVG (groups, shapes and IDs) with SVG Explorer, a free SVG viewer, before you import.
06
What you get at the end
With the PNG + JSON data output (it needs the paid plan), each edition comes as a PNG with its own JSON data file: name, description, image, edition number and attributes, each attribute a trait_type and a value. A variant statistics file gives the count and percentage of each attribute value for the editions you export, the whole collection when you export it all. The image field holds the file name of the PNG, for example 1.png in the collection ZIP: replace it with your own link if you publish the images online. SVG only and PNG only give the images alone, and print files come at 300 DPI.
- assets/
- 1.png … 12.pngPNG, 1024 or 2048 px
- 1.svg … 12.svgSVG option, sharp rendering only
- metadata/
- 1.json … 12.jsonone JSON data file per edition
- variant-stats.jsoncount and percentage of each attribute value, for the editions in the ZIP
- collection.jsoncollection name, date and the list of editions in the ZIP
Start today
Your next SVG can become a collection.
The studio is open. Start free with 100 credits once your e-mail is verified.
No subscription · Free previews