Skip to content

tartan-maker

tartan-maker turns compact tartan specifications into validated YAML, SVG artwork, PNG exports, and Scottish Register of Tartans-style pallet/threadcount fields.

It is built around one rule: SVG is the source of truth. PNG output is generated from the SVG renderer rather than through a separate raster implementation.

  • :material-image-filter-hdr: Render tartans

    Render symmetrical and asymmetrical setts to clean SVG.

  • :material-check-decagram: Validate specs

    Catch missing colors, bad pivots, unused palette entries, and suspicious repeat sizes.

  • :material-format-list-bulleted-square: Export SRT fields

    Generate Pallet: and Threadcount: values suitable for recordkeeping.

  • :material-console: Use it from the shell

    A small, normal-looking command-line utility for repeatable work.

Black Watch / Government tartan Buchanan tartan Royal Stewart tartan

Quick example (repository checkout)

tartan-maker render examples/black-watch.yaml -o black-watch.svg
tartan-maker inspect examples/buchanan.yaml
tartan-maker srt examples/macleod-of-lewis.yaml