skills-for-human
home / antfu / skills@main / slidev / references / layout-canvas-size.md
Files (56)
references/
animation-click-marker.mdanimation-drawing.mdanimation-rough-marker.mdapi-slide-hooks.mdbuild-og-image.mdbuild-pdf.mdbuild-remote-assets.mdbuild-seo-meta.mdcode-groups.mdcode-import-snippet.mdcode-line-highlighting.mdcode-line-numbers.mdcode-magic-move.mdcode-max-height.mdcode-twoslash.mdcore-animations.mdcore-cli.mdcore-components.mdcore-exporting.mdcore-frontmatter.mdcore-global-context.mdcore-headmatter.mdcore-hosting.mdcore-layouts.mdcore-syntax.mddiagram-latex.mddiagram-mermaid.mddiagram-plantuml.mdeditor-monaco-run.mdeditor-monaco-write.mdeditor-monaco.mdeditor-prettier.mdeditor-side.mdeditor-vscode.mdlayout-canvas-size.mdlayout-draggable.mdlayout-global-layers.mdlayout-slots.mdlayout-transform.mdlayout-zoom.mdpresenter-notes-ruby.mdpresenter-recording.mdpresenter-remote.mdpresenter-timer.mdstyle-direction.mdstyle-icons.mdstyle-scoped.mdsyntax-block-frontmatter.mdsyntax-frontmatter-merging.mdsyntax-importing-slides.mdsyntax-mdc.mdtool-eject-theme.md
LICENSE.mdREADME.mdSKILL.mdSYNC.md

references/layout-canvas-size.md

GitHub
namecanvas-size
descriptionConfigure slide canvas dimensions and aspect ratio

Slide Canvas Size

Set the canvas dimensions for all slides.

Configuration

---
aspectRatio: 16/9
canvasWidth: 980
---
  • aspectRatio: Ratio of width to height (default: 16/9)
  • canvasWidth: Canvas width in pixels (default: 980)

Related Features

  • Scale individual slides: use zoom frontmatter option
  • Scale elements: use <Transform> component