canvas-page-definition
Canonical definition
A Canvas page is a JSON page spec stored in the repository's configured
pagesDir.
Workbench uses these files for local page previews, and the Canvas CLI
push/pull workflow uses them to sync pages between the local project and
Drupal Canvas.
Page specs should fully mirror what authors can build in Drupal Canvas.
Minimum contract (MUST)
Every Canvas page MUST satisfy all checks below:
- The page file exists in the configured pages directory (
pagesDirincanvas.config.json; default./pages) - The page file is a JSON object
- The page includes a non-empty
title
More from drupal-canvas/skills
canvas-component-definition
Start here for any React component task to enforce the canonical Canvas
96canvas-component-metadata
Define valid component.yml metadata for Canvas components, including props,
94canvas-component-utils
Use utility components to render formatted text and media correctly. Use when
80canvas-data-fetching
Fetch and render Drupal content in Canvas components with JSON:API and SWR
80canvas-component-composability
Design Canvas-ready React components with slots and decomposition-first
78canvas-styling-conventions
Style Canvas components with Tailwind CSS 4 theme tokens and approved utility
77