using-drupal-canvas

Orchestrates Canvas component development guidance for Drupal CMS projects.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/AJV009/drupal-devkit --skill using-drupal-canvas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-drupal-canvas
Source: https://github.com/AJV009/drupal-devkit/tree/main/plugins/drupal-canvas/skills/using-drupal-canvas
Command: npx skills add https://github.com/AJV009/drupal-devkit --skill using-drupal-canvas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides Canvas-specific guidance for starting conversations and executing tasks related to Canvas Code Components, Experience Builder, and Drupal CMS components within Drupal projects.

Core Features & Use Cases

  • Canvas component guidance for component.yml contracts, CVA variants, slot decomposition, and theme tokens.
  • Experience Builder & Drupal CMS integration patterns for building modular UI in Drupal projects.
  • Task guidance & context loading for collaboration with other skills in the plugin catalog and during canvas-based development requests.

Quick Start

In Claude Code, invoke the drupal-canvas:canvas-component-authoring skill for any component work.

Frequently Asked Questions about using-drupal-canvas

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Canvas components for Drupal CMS projects?

Canvas component development for Drupal requires defining component.yml contracts, applying CVA variants, and decomposing slots. This ensures modular UI elements integrate correctly with the Experience Builder and adhere to theming tokens.

What is a component.yml contract in Drupal Canvas development?

A component.yml contract in Drupal Canvas defines the structure, CVA variants, and slots for a UI component. It enforces theming token adherence so components render consistently within the Drupal Experience Builder.

How do I set up Storybook for Drupal Canvas components?

Setting up Storybook for Drupal Canvas components involves defining component.yml contracts and CVA variants first. The component authoring process guides scaffolding and documentation tasks so stories match the expected slot decomposition structure.

Does Drupal Canvas component authoring work with CVA variants?

Yes, Drupal Canvas component authoring applies CVA variants directly to manage component styling and states. The component.yml contract enforces these variants alongside slot decomposition and theming tokens for consistent modular UI output.

What's the best way to structure slot decomposition for Drupal Experience Builder components?

Structuring slot decomposition for Drupal Experience Builder components requires defining explicit slots in the component.yml contract. This maintains proper CVA variant mapping and theming token integration across Canvas UI elements.

Why do I need theme tokens when developing Canvas components in Drupal?

Theme tokens are required when developing Canvas components in Drupal to maintain visual consistency across modules. The component authoring process enforces token adherence through the component.yml contract alongside CVA variants and slot definitions.