Documentation

Canvas

The canvas is your main workspace — a scrollable viewport where you draw elements that become real code. A floating toolbar sits above it with the drawing tools, and a page-size control pins to the...

The canvas is your main workspace — a scrollable viewport where you draw elements that become real code. A floating toolbar sits above it with the drawing tools, and a page-size control pins to the top of every artboard.

Drawing Elements

  • Press R to activate the rectangle tool. Click and drag to draw a rectangle.
  • Press T to activate the text tool. Click to place a text element.
  • Press I to activate the image tool. Pick a file, then draw a frame.
  • Press F to activate the input tool. Click and drag to place a form input.
  • Press V to switch back to the select tool.

See Elements for the full list of HTML tags each tool can produce and how to change an element's tag after placing it.

Selecting Elements

  • Click any element to select it. Its properties appear in the Properties Panel.
  • Click empty canvas space to deselect.
  • Click the page-name badge above the canvas to select the page root — a Figma-style shortcut to edit page-level styles (background, flex layout, padding).
  • Selected elements show resize handles at their corners and edges.

Moving and Resizing

  • Move — Click and drag a selected element to reposition it.
  • Resize — Drag any handle on a selected element to change its size.
  • Nudge — Arrow keys move by 1px; Shift+Arrow moves by 10px.

Drags and resizes clamp to the visible page, so an element can't disappear off-screen. When you're editing at a non-desktop breakpoint, these actions write to that breakpoint's override instead of the base styles.

Duplicating and Deleting

  • Cmd+D — Duplicate the selected element.
  • Delete or Backspace — Remove the selected element.

Canvas Size

The canvas-size control sits just above the canvas, to the right of the page-name badge. It shows the current width (e.g. Desktop · 1440) and opens a popover with:

  • Breakpoints — preset buttons for each project breakpoint. Clicking one resizes the canvas AND switches the active breakpoint for editing. See Breakpoints for the full responsive workflow.
  • Custom width — type any width between 100 and 4000 pixels. Custom widths drop the active breakpoint back to Desktop so edits target the base CSS.
  • Overflow hidden — clip content that extends outside the canvas width. A preview helper; never written to your CSS.

Canvas width lives in your project's scamp.config.json — it's a design-tool preference, not part of your page's CSS.

Scrolling and Zoom

The scrollbars are at the artboard edges. Scroll in any direction — the floating element toolbar stays pinned at the top, and the canvas content moves freely behind it. This matches Figma, Sketch, and other design tools.

| Shortcut | Action | |---|---| | Cmd+= | Zoom in one step | | Cmd+- | Zoom out one step | | Cmd+0 | Reset zoom to fit |

Blank projects show a 1440×900 white page by default. As you add content, the page grows vertically — tall pages scroll inside the artboard like a real browser window.

Keyboard Shortcut Summary

| Key | Tool | |---|---| | V | Select | | R | Rectangle | | T | Text | | I | Image | | F | Input |

For the full list, see Keyboard Shortcuts.