Contributing templates
Templates are SVG files plus a manifest entry. Once contributed, they appear in the editor’s Participants and shape menus next to the built-in templates.
The contribution flow is in the public repo:
Categories
Section titled “Categories”| Folder | Examples |
|---|---|
templates/vehicle/ | Sedan, Bus, Truck, Motorcycle |
templates/pedestrian/ | Walking, Simple |
templates/road_marking/ | Crosswalk, arrow markings |
templates/sign/ | Stop, yield, signal heads |
templates/other/ | Anything else |
Process
Section titled “Process”- Add your SVG under the right category folder.
- Register it in
templates/manifest.json. - Open a PR. Include a screenshot of the template placed on the canvas.
What makes a good template
Section titled “What makes a good template”- Drawn at a sensible default size (vehicles around 4–5 m for a sedan).
- A single colour-changeable region marked with a known fill, so the Attribute Panel’s colour picker can recolour it.
- No external font references — text is converted to paths if present.
- Reasonable file size (under ~30 KB for a vehicle-sized template).