Skip to content

Patterns

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.

By Bohuslav PoláčekChecked

packages/kit/src/components/screen.tsx
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;
};
The canvas screen's slots in the kit, read from the repository when the site was built.

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

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

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

Example apps with a canvas

Which example apps render a canvas, and the record flows each one uses.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

apps/demo/src/modules/editor/pages/editor.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}
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.

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.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app