{
  "key": "file_56_dark_minimal",
  "name": "56mm Dark Minimal",
  "size": "56mm",
  "template_json": {
    "version": 1,
    "settings": {
      "size": "56mm",
      "font_family": "\"Courier New\", Courier, monospace",
      "font_style": "normal",
      "custom_css": ""
    },
    "components": [
      {
        "type": "text",
        "label": "Business Name",
        "content": {
          "mode": "tag",
          "tag": "display_name"
        },
        "style": {
          "fontSize": 18,
          "bold": true,
          "textAlign": "center",
          "htmlTag": "h3"
        }
      },
      {
        "type": "text",
        "label": "Address",
        "content": {
          "mode": "tag",
          "tag": "address"
        },
        "style": {
          "fontSize": 10,
          "textAlign": "center",
          "htmlTag": "p"
        }
      },
      {
        "type": "divider",
        "label": "Header Divider",
        "style": {
          "lineStyle": "solid",
          "lineThickness": 1
        }
      },
      {
        "type": "text",
        "label": "Invoice Number",
        "content": {
          "mode": "tag",
          "tag": "invoice_no",
          "prefix": "Invoice: "
        },
        "layout": {
          "width": 58,
          "newLine": true
        },
        "style": {
          "fontSize": 11,
          "bold": true,
          "textAlign": "left",
          "htmlTag": "p"
        }
      },
      {
        "type": "text",
        "label": "Invoice Date",
        "content": {
          "mode": "tag",
          "tag": "invoice_date",
          "prefix": "Date: "
        },
        "layout": {
          "width": 42,
          "newLine": false,
          "itemAlign": "right"
        },
        "style": {
          "fontSize": 11,
          "textAlign": "right",
          "htmlTag": "p"
        }
      },
      {
        "type": "table",
        "label": "Line Items",
        "content": {
          "tableMode": "line",
          "columns": [
            {
              "header": "Item",
              "width": 52,
              "align": "left",
              "tags": [
                "line.name"
              ],
              "separator": "<br>"
            },
            {
              "header": "Qty",
              "width": 18,
              "align": "center",
              "tags": [
                "line.quantity"
              ]
            },
            {
              "header": "Total",
              "width": 30,
              "align": "right",
              "tags": [
                "line.line_total"
              ]
            }
          ]
        },
        "style": {
          "headerFontSize": 10,
          "bodyFontSize": 10,
          "headerBold": true,
          "borderStyle": "solid",
          "borderWidth": 1,
          "borderColor": "#000000"
        }
      },
      {
        "type": "divider",
        "label": "Totals Divider",
        "style": {
          "lineStyle": "dashed",
          "lineThickness": 1
        }
      },
      {
        "type": "text",
        "label": "Total Label",
        "content": {
          "mode": "static",
          "staticText": "TOTAL"
        },
        "layout": {
          "width": 45,
          "newLine": true
        },
        "style": {
          "fontSize": 14,
          "bold": true,
          "textAlign": "left",
          "htmlTag": "p"
        }
      },
      {
        "type": "text",
        "label": "Total Value",
        "content": {
          "mode": "tag",
          "tag": "total"
        },
        "layout": {
          "width": 55,
          "newLine": false,
          "itemAlign": "right"
        },
        "style": {
          "fontSize": 14,
          "bold": true,
          "textAlign": "right",
          "htmlTag": "p"
        }
      },
      {
        "type": "text",
        "label": "Footer Text",
        "content": {
          "mode": "tag",
          "tag": "footer_text"
        },
        "style": {
          "fontSize": 10,
          "textAlign": "center",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "footer_text"
          ],
          "groupKey": "footer"
        }
      }
    ]
  }
}
