// Standard Shipping Label format (4x6 inches)
#set page(width: 4in, height: 6in, margin: 0.25in)
#set text(font: "Helvetica", size: 10pt)
#let brand-color = rgb("#334155")
// Top Header
#grid(
columns: (1fr, 1fr),
align(left)[
#text(weight: "bold", size: 14pt)[#data.carrier] \
#data.service_type
],
align(right)[
#text(weight: "bold", size: 24pt)[#data.zone]
]
)
#v(0.1in)
#line(length: 100%, stroke: 2pt)
#v(0.1in)
// Sender (From)
#text(size: 8pt)[FROM:] \
#text(weight: "bold")[#data.sender.name] \
#data.sender.address \
#data.sender.city, #data.sender.state #data.sender.zip
#v(0.2in)
// Recipient (To)
#text(size: 10pt)[TO:] \
#text(size: 14pt, weight: "bold")[#data.recipient.name] \
#text(size: 12pt)[
#data.recipient.address \
#data.recipient.city, #data.recipient.state #data.recipient.zip
]
#v(0.2in)
#line(length: 100%, stroke: 2pt)
#v(0.1in)
// Tracking and Barcode Area
#align(center)[
#text(weight: "bold", size: 12pt)[TRACKING NUMBER] \
#v(0.1in)
// Placeholder for a generated barcode
#rect(width: 3in, height: 0.8in, fill: black)[
#align(center + horizon)[
#text(fill: white, size: 10pt)[BARCODE RENDERING HERE]
]
]
#v(0.1in)
#text(font: "Courier", weight: "bold", size: 11pt)[#data.tracking_number]
]
#v(1fr)
#align(right)[
#text(size: 8pt)[Weight: #data.weight | Date: #data.date]
]