For developers¶
Extending the module, the front-end runtime, and the reference material behind the editor UI.
Quick start¶
composer require drupal/canvas_builder
drush en canvas_builder
Settings live at Administration → Configuration → Content authoring →
Canvas Builder (/admin/config/content/canvas-builder), behind the
Administer Canvas Builder permission.
First thing to try: select a Section on a Canvas page. The floating toolbar sets its layout; the Style tab sets its background, spacing, and typography.
Issues and patches: project issue queue.
-
How a style edit flows from the control through the draft, publish, and revision lifecycle, and the seams the module hooks into Canvas through.
-
Add a style option, a whole new style type, or a plugin from your own module.
-
The client-side
Drupal.canvasBuildernamespace and the fullcb:*event contract other code can subscribe to. -
How a published page actually renders: class flattening, per-viewport visibility, and the front-end runtime libraries.
-
The full YAML shape a style definition must satisfy, field by field.
-
Build a new style type — a widget beyond the built-in select, media, overlay, and box-model handlers.
-
Add a new prop-group tab, or a custom form widget for a component prop.
-
Switch between Custom, Bootstrap, and Tailwind — framework profiles, layout class maps, and the Tailwind safelist.
-
Known constraints and edge cases worth knowing before you build on top of them.