01 / Barcode gallery
QR Code, Data Matrix, Aztec, and PDF417. Each symbol is generated directly from CSS as vector artwork.
-precision-barcode(qr-code, "https://example.com/report")-precision-barcode(data-matrix, "PART-123")-precision-barcode(aztec, "FFDW-27-0418")-precision-barcode(pdf417, "BOARDING-PASS")Keep the clear area around every symbol intact. Supply EAN/UPC values with their complete, valid check digit; the generated artwork includes the digits.
02 / Barcode gallery
Six formats for references, parts, and retail labels. Every value below is sample data.
-precision-barcode(code128, "SHIP-123")-precision-barcode(code-39, "PART-123")-precision-barcode(ean-13, "4006381333931")-precision-barcode(ean-8, "96385074")-precision-barcode(upc-a, "036000291452")-precision-barcode(upc-e, "05096893")Keep the clear area around every symbol intact. Supply EAN/UPC values with their complete, valid check digit; the generated artwork includes the digits.
03 / Barcode gallery
Each symbol encodes https://example.com/report. Print at actual size to compare the 25 mm and 40 mm examples.
-precision-barcode(qr-code, "https://example.com/report")-precision-barcode(qr-code, "https://example.com/report")content: -precision-barcode(qr-code, "https://example.com/report") / "Report QR code";-precision-barcode(qr-code, "https://example.com/report")Use contain to preserve proportions and no-repeat to prevent tiling. Keep modules large enough for your scanner and leave quiet zones clear. Test the final printed size.
04 / Barcode gallery
All four symbols encode https://example.com/report. Use the form that fits your template or stylesheet.
-precision-barcode(qr-code, "https://example.com/report")content: -precision-barcode(qr-code, attr(data-value));--barcode-data: "https://example.com/report";-precision-barcode(qr-code, var(--barcode-data))-precision-barcode(qr-code, url("https://example.com/report"))attr() encodes literal attribute text: a relative href stays relative. URL input resolves against the stylesheet or document base before encoding. Keep a visible label and equivalent text beside the barcode.
05 / Barcode gallery
Choose CSS colors and one of four QR error-correction levels. The defaults are black on white and QR correction M.
-precision-barcode(aztec, "FFDW-27-0418", #193b47, #fff8e9)-precision-barcode(qr-code, "FFDW-27-0418", currentColor, transparent)qr-code(error-correction-low)qr-code(error-correction-medium)qr-code(error-correction-quartile)qr-code(error-correction-high)Foreground and background accept CSS colors, including currentColor and alpha. The background also fills the quiet zone. Keep strong contrast and a clear, flat background so symbols stay readable.