Skip to content

Receipt Printer

A thermal receipt feeds up out of a printer line by line, each row burning in left to right down to a highlighted total and barcode, before the slip is torn off and flies away.

Theme an embed without editing the bit: put data-variable-values on the data-composition-src element, or bake new defaults into the installed copy with --set.

IdTypeDefaultLabel
storestring"HYPERBITS SUPPLY CO."Store name
itemsstring"Dithered planet:12.00,Split-flap board:8.50,ASCII torus:6.25,Isometric city:14.00,Vector scope:9.75"Items as name:price, comma separated
backgroundcolor#100f0fBackground
foregroundcolor#f2f0e5Paper
accentcolor#ec8b49Accent
<div data-composition-src="compositions/receipt-print.html" data-variable-values='{"store":"HYPERBITS SUPPLY CO.","items":"Dithered planet:12.00,Split-flap board:8.50,ASCII torus:6.25,Isometric city:14.00,Vector scope:9.75","background":"#100f0f","foreground":"#f2f0e5","accent":"#ec8b49"}'></div>
Terminal window
npx @av/hyperbits add receipt-print --into compositions/ --set "background=#0b1020"