LayMeshDocs
中文

Bootstrap

Full source
bootstrap.lay
page=canvas(size=(100mm,65mm),stylesheet="@laymesh/bootstrap.css",background="#f6f7fb")card=page.add(rect(size=(40mm,25mm),class="bg-primary rounded shadow"),anchor=center,target=page.center)page.add(text("Bootstrap: classes",class="text-primary"),anchor=top_center,target=card.bottom_center,offset=(0mm,8mm))

Preview

Background
Preparing preview…
Bootstrap
Preparing preview…
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

Edits stay on this page
Dependencies
  • examples/libraries/bootstrap.lay

Reproduce

sh
laymesh validate examples/libraries/bootstrap.laylaymesh render examples/libraries/bootstrap.lay -o figure.svglaymesh render examples/libraries/bootstrap.lay -o figure.pdflaymesh render examples/libraries/bootstrap.lay -o figure.png --dpi 300