Search by

drupal / mutamad_theme_recipe

Drupal-Infrastructure

The Mutamad front end on Canvas: the Mutamad theme (Bootstrap 5, right-to-left for Arabic) and its components, a header and footer the site administrator edits in Canvas, and ready-made sections editors drop into a page.

Package info

git.drupalcode.org/project/mutamad_theme_recipe.git

Homepage

Issues

Type:drupal-recipe

pkg:composer/drupal/mutamad_theme_recipe

Statistics

Installs: 61

Dependents: 1

Suggesters: 0

1.0.x-dev 2026-11-12 17:43 UTC

This package is not auto-updated.

Last update: 2026-11-16 06:01:51 UTC


README

Mutamad Theme Setup — إعداد القالب

Mutamad Theme (recipe)

The Mutamad front end on Canvas: the Mutamad theme and its components, a header and footer the site administrator edits in Canvas, and ready-made sections editors drop into a page. A drupal-recipe, applied by mutamad_starter.

Built and maintained by iSpectra — Imagine. Implement. Inspire. See iSpectra on drupal.org.

What it sets up

  • The Mutamad theme as the front-end theme: Bootstrap 5 in Mutamad's greens, right-to-left on Arabic pages, a theme of its own (no base theme). Bootstrap comes from the theme's own compiled files, never from a CDN, so it works under Mutamad's Content Security Policy and on a closed network.
  • The theme's components as the one Bootstrap set in the Canvas library, grouped as Content, Layout, Cards, Hero and Navigation: the 16 the templates and patterns are built from — wrapper, row, column, heading, paragraph, button, link, image, card, accordion, carousel, blockquote, alert, badge — and cards, heroes, calls to action, sections, tabs and tables beside them, and Field tabs and Structured list for content templates — 48 in all.
  • Canvas Bootstrap, for its grouped settings form: in the editor, a component's settings are in tabs (Spacing, Colours…) instead of one column — the image has about 90. Its own copies of the components are taken out of the library.
  • Two page templates, which the site administrator edits in Canvas (Canvas's page variants, which replaced theme regions in Canvas 1.11):

    Page templateWhat it holdsUsed by
    DefaultHeader (language switcher, logo, main menu), the section menu, breadcrumb, messages, page title, the page, footer (about with social links and accessibility tools, quick links, the national platforms, contact, bottom bar)Every page unless it picks another: content, forms, listings, error pages
    Landing pageThe same, without breadcrumb and page titleCanvas pages with their own heading, such as the home page

    The templates' texts come in Arabic and English.

  • Twelve section patterns an editor drops into a Canvas page — the sections of a Saudi government home page: hero banner, text and image, e-services, vision and strategy, key figures, call-to-action band, latest news, frequently asked questions, call to action, image cards, quote, announcement. Their texts are placeholders in the site's language, Arabic or English, to be replaced — one language only, as Canvas cannot yet list a translated pattern; the images are placeholders in Mutamad's greens until a media item is picked. The hero, e-services, figures and call-to-action band reach the edges of the window.

Who does what

Role
Content Editor, Content ReviewerBuild Canvas pages from the components and patterns
App Admin (IT)Edits the page templates (header and footer) and the patterns

Requirements

Mutamad Canvas, which the recipe applies first; the Mutamad theme and Canvas Bootstrap, through Composer. Mutamad Canvas Controls (from Mutamad Canvas) provides the createWithComponentTree config action the recipe uses.

Apply it to an existing site

On a site not started from the Mutamad project template, add it with Composer first. Composer accepts an alpha only if the site's own composer.json allows it, so the command allows Canvas Translate, which this project needs and which has no stable release:

composer require drupal/mutamad_theme_recipe \
  'drupal/canvas_translate:^1.0@alpha'

Then:

drush recipe ../recipes/mutamad_theme_recipe

Licence

GPL-2.0-or-later.

Maintainers

iSpectra

Built and maintained by iSpectra (on drupal.org).