# The canvas screen

A canvas screen holds one document or artboard: text on a reading measure that scrolls, or, with a full plate, an artboard that fills the screen and pans and zooms inside itself beside an inspector on the right. A toolbar floats over it, and on a phone the plate and the inspector stack in one scroll, the inspector first when it holds the decision the person came for.

Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/patterns/canvas/

*The canvas screen's slots in the kit, read from the repository when the site was built.*

From `packages/kit/src/components/screen.tsx` in the Meadowstack repository:

```ts
export type CanvasScreenProps = Base & {
  archetype: "canvas";
  /** Floating toolbar over the document. */
  toolbar?: ReactNode;
  /** The inspector on the right. */
  inspector?: ReactNode;
  /**
   * `measure` (default): text on a reading measure that scrolls. `full`: the plate fills the screen beside the
   * inspector and pans and zooms inside itself (an artboard, a dieline); on a phone the plate and the inspector
   * stack in the one scroll.
   */
  plate?: "measure" | "full";
  /** With `plate="full"`, a phone shows the inspector before the plate (the decision a person came for). */
  inspectorFirst?: boolean;
  children: ReactNode;
};
```

## Anatomy

- **Header** (`header`): the document's title, the job number and the version as the eyebrow, the state in `meta`. One primary action ("Send for approval") and at most two secondary ones, built from what applies ("Save again", "Save a version"). At Foldline the header carries the number, the title, the state and the customer only, and saving is silent unless it fails.
- **Plate** (`children`): the document or the artboard.
- **Inspector** (`inspector`): the column on the right. At Foldline it shows the selected layer's properties, or, with nothing selected, the design itself: its next step or the customer's decision, its facts and history, the preflight and the versions.
- **Toolbar** (`toolbar`): floats at the bottom centre, over the plate.
- **Plate mode** (`plate`): `measure`, the default, or `full`.
- **Inspector first** (`inspectorFirst`): with a full plate, a phone shows the inspector before the plate.

## Two plates

| Plate | `measure` (default) | `full` |
| --- | --- | --- |
| The document | text on a 46rem reading measure that scrolls | fills the screen, pans and zooms inside itself |
| The inspector | 18rem on the right from 1024px, hidden below | 21rem on the right from 1024px; on a phone under the plate, or before it with `inspectorFirst` |
| What scrolls | the document | on a desktop only the plate and the inspector's own content; on a phone the stack, once |

Every canvas in the demo uses `full`: Foldline's print file editor, Stonebridge's drawings and Fernhill's scenarios. The header runs full width either way. A canvas opens no records (decision 0001): it is the work surface of one, and what belongs to it opens on the plate or in the inspector. A comment at Foldline is a pin on the flat that opens its thread in a card on the stage; a pin on a Stonebridge drawing opens in a side panel, so the board and the list of pins stay usable.

## Phones and keys

On a phone Foldline's editor is for looking and commenting, and it says so. A customer who came to approve a proof gets the decision first: `inspectorFirst` is on while the design waits for her, as the code's comment puts it, "The decision a customer came for comes first on a phone." Fernhill's scenarios show their steps as a list on a phone, the same steps as the canvas (`FlowOutline` beside `FlowCanvas`).

On a desktop the editor works from the keyboard: Cmd/Ctrl+Z and Shift+Cmd/Ctrl+Z undo and redo, Cmd/Ctrl+D duplicates, Cmd/Ctrl with the bracket keys changes the order, and Delete removes with an undo in the toast. There are no single-key shortcuts (WCAG 2.1.4): the arrows and Delete act only on a focused layer. Roles change what can be done, not the screen: prepress edits everything, sales edit text, the press operator reads, and the customer sees the version she was sent.

## The rules and where they are enforced

| Rule | Where it is enforced |
| --- | --- |
| The plate pans inside itself; the page never scrolls, and nothing scrolls inside a scroll | `page-scroll` and `nested-scroll`; Foldline's soap box design is the type's sample in `e2e/screens.spec.ts`, at 1440 and 390, light and dark |
| The decision a person came for comes first on a phone | `inspectorFirst`, and the root `AGENTS.md`, "Responsive" |
| No sideways scroll on a phone | `horizontal-overflow` in the runtime audit |
| No single-character shortcuts | the root `AGENTS.md` (WCAG 2.1.4) |
| One primary action, at most two secondary ones | the type: `secondary` is a tuple of one or two |

## What AI coding tools build instead

- **An artboard inside a scrolling page.** Panning the plate scrolls the page, or the page scrolls the plate away. Here a full plate pans inside itself, and on a desktop nothing else scrolls.
- **An inspector squeezed beside the plate on a phone.** Here it stacks under the plate, or above it when it holds the decision.
- **Single-letter tool keys**, which WCAG 2.1.4 rules out because a stray key press or speech input sets them off.
- **Markers placed by hand** on an image: `PinBoard` replaces "an image with absolutely positioned hand-made markers".
- **A diagram library** for a flow of steps: `FlowCanvas` replaces "React Flow or another diagram library", and its outline gives phones and screen readers the same steps as lists.

## Screens of this type

- [Proof approval](https://meadowstack.com/screens/proof-approval/): Foldline's print file editor as the customer sees it, the decision first on a phone, in the [Foldline example app](https://meadowstack.com/examples/packaging-print-production/).
- [Workflow canvas](https://meadowstack.com/screens/workflow-canvas/): a Fernhill scenario, its steps drawn on a canvas that pans and zooms.
- [Defects on drawings](https://meadowstack.com/screens/defects-on-drawings/): Stonebridge's drawings register is a list, and each drawing opens as a canvas with its pins on the sheet.
- The decision on the proof: the [approval flow](https://meadowstack.com/patterns/approval-flow/) pattern.

## Example apps with a canvas

*Which example apps render a canvas, and the record flows each one uses.*

| Example app | Modules | Side panel first | Decision card | History |
| --- | --- | --- | --- | --- |
| [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | 5 | Yes | Yes | Yes |
| [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | 5 | Yes | No | Yes |
| [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | 8 | Yes | Yes | Yes |

Read from the demo's source when the site was built: 3 of 9 example apps render a <Screen archetype="canvas">. Side panel first means RecordPeek, the decision card ApprovalPanel, the history AuditTimeline.

## How Foldline's print file editor fills the slots

*Foldline's editor: the secondary actions built from what applies, a full plate, the inspector first on a phone while a customer has a decision to make, and the job number and version as the eyebrow.*

From `apps/demo/src/modules/editor/pages/editor.tsx` in the Meadowstack repository:

```tsx
const quiet = [saveAgain, versionButton].filter(Boolean);
const actions: ScreenActions = {
  primary: sendButton,
  secondary: quiet.length === 2 ? [quiet[0], quiet[1]] : quiet.length === 1 ? [quiet[0]] : undefined,
};

return (
  <Screen
    archetype="canvas"
    plate="full"
    // The decision a customer came for comes first on a phone.
    inspectorFirst={customer && design.status === "customer"}
    header={{
      eyebrow: [
        design.jobNumber,
        latestVersion
          ? tx(
              `verze ${customer ? design.sentVersion : latestVersion.number}`,
              `version ${customer ? design.sentVersion : latestVersion.number}`,
            )
          : null,
      ]
        .filter(Boolean)
        .join(" · "),
      title: design.title,
      meta: <DesignStatusLabel status={design.status} className="text-sm text-fg-muted" />,
      actions,
    }}
    inspector={right}
```

## Questions

### When is a screen a canvas rather than a record?

When the document itself is the work: an artwork to check, a drawing to mark, a flow to read. A record lists facts about a thing; a canvas shows the thing, with its facts in the inspector beside it.

### What does a canvas editor do on a phone?

With a full plate, the plate and the inspector stack in one scroll, the inspector first when it holds the decision the person came for. Foldline's editor says on a phone that it is for looking and commenting.

### Why does the editor have no single-key shortcuts?

WCAG 2.1.4 rules them out, because a stray key press or speech input would set them off. Every key takes a modifier, and the arrows and Delete act only on a focused layer.

### What is the difference between the two plates?

The measure plate sets text on a 46rem column that scrolls, with an 18rem inspector from 1024px. The full plate fills the screen and pans and zooms inside itself beside a 21rem inspector, and every canvas in the demo uses it.

## Related

- [A proof the customer approves in their own portal](https://meadowstack.com/screens/proof-approval/) (Screens)
- [Defects pinned on the drawing, carried across revisions](https://meadowstack.com/screens/defects-on-drawings/) (Screens)
- [A change order that shows its price before anyone approves it](https://meadowstack.com/screens/change-order-form/) (Screens)
- [A content calendar for a creator's posts and brand deals](https://meadowstack.com/screens/content-calendar/) (Screens)
- [A document inbox that catches a changed bank account](https://meadowstack.com/screens/document-inbox/) (Screens)
- [A packaging quote that works out its price as you type](https://meadowstack.com/screens/quote-form/) (Screens)
