imrodmartin / jarvis
DXPR-style SDC theme with Bootstrap 5, built for Drupal Canvas and Layout Builder.
Package info
Language:CSS
Type:drupal-theme
pkg:composer/imrodmartin/jarvis
Requires
- php: >=8.3
- drupal/canvas: ^1.8
- drupal/canvas_field_component: ^1.0
- drupal/focal_point: ^2.1
- drupal/twig_tweak: ^3.4
- imrodmartin/jarvis-modules: ^2.3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
- drupal/jarvis: v4.5.0
- dev-master
- v4.5.0
- v4.4.4
- v4.4.3
- v4.4.2
- v4.4.1
- v4.4.0
- v4.3.3
- v4.3.2
- v4.3.1
- v4.3.0
- v4.2.1
- v4.2.0
- v4.1.0
- v4.0.0
- v3.5.2
- v3.5.1
- v3.5.0
- v3.4.1
- v3.4.0
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.1
- v3.1.0
- v3.0.2
- v3.0.1
- v3.0.0
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.0
- v1.0.0
- dev-feat/today-component
- dev-claude/project-thread-b6a2yj
- dev-fix/hero-card-badge
- dev-feat/hero-text-card
- dev-fix/card-h100-shared-column
- dev-feat/column-alignment
- dev-docs/blocks-and-regions
- dev-fix/vertical-padding-toggle
- dev-bor-4.3
- dev-fix/pager-active-white
- dev-fix/pager-styles
- dev-claude/footer-canvas-112
- dev-claude/footer-dedupe
- dev-claude/footer-block-layout
- dev-claude/card-color-backgrounds-ada
- dev-docs/4.0-component-count
- dev-claude/component-fixes-lean
- dev-claude/card-title-link
- dev-claude/handbook-3.5
- dev-claude/share-centered
- dev-claude/views-layouts
- dev-feat/webform-styles
- dev-fix/menu-nolink-span-selector
- dev-feat/four-column
- dev-fix/heading-level-actually-resizes
- dev-fix/collapse-row-gutter
- dev-docs/guide-v2.1.1
- dev-docs/component-reference-21-components
- dev-feat/timeline-component
- dev-feature/cta-video-image-sdcs
- dev-feature/image-overlay-sdc
This package is auto-updated.
Last update: 2026-12-02 13:55:14 UTC
README
DXPR-style SDC theme with Bootstrap 5, built for Drupal Canvas and Layout Builder, with WCAG 2.2 AA safeguards built in (automatic overlay contrast, safe-colour fallbacks, live contrast badges in the theme settings).
Building a whole site? Use the jarvis-bootstrap-recipe repository — it wires this theme into a fully functional Drupal site (Canvas, demo content, forms, workflow, SEO, AI) with one recipe apply. This repo is just the theme, included there as a git submodule.
📘 The Jarvis Handbook is the user guide for site builders and content editors.
🛠 The Jarvis Technical Guide is for developers: what each part does, how to build it, and a reference to all twenty-four components.
Requirements
- PHP
>= 8.3 - Drupal
^11 || ^12 - Docker + ddev — provides Composer + Drush in-container (the commands below assume it)
- Contrib modules (pulled automatically by Composer):
canvas,canvas_field_component,focal_point(→crop),twig_tweak - The
jarvis_canvasmodule, fromimrodmartin/jarvis-modules— required, not optional.hero,card, the column shell andimagecall Twig filters it provides (jarvis_overlay_alpha,jarvis_image_style), and Twig fails to compile them when it is missing. The theme declares it injarvis.info.yml, so Drupal refuses to install the theme without it rather than white-screening later. It also supplies the Remote video media picker and the Basic/Full HTML formats on rich-text props.
Install
The theme and its imrodmartin/jarvis-modules dependency are on
Packagist, so no extra
repositories are needed:
ddev composer require imrodmartin/jarvis
The package was called drupal/jarvis up to 4.4.4. Packagist does not accept
the drupal/ vendor, so from 4.5.0 it is imrodmartin/jarvis, and it declares
"replace": {"drupal/jarvis": "self.version"} so anything that still requires
the old name is satisfied by it. A site that required drupal/jarvis itself
has to switch once — see Switching from drupal/jarvis.
If your host cannot reach Packagist, register both repositories as Composer VCS sources first:
ddev composer config repositories.jarvis '{"type":"vcs","url":"https://github.com/imrodmartin/jarvis","no-api":true}' ddev composer config repositories.jarvis-modules '{"type":"vcs","url":"https://github.com/imrodmartin/jarvis-modules","no-api":true}'
no-api makes Composer clone over git instead of the GitHub API — it avoids the
unauthenticated 60-calls/hour API rate limit (and the occasional 502) that
otherwise blocks the install.
Composer puts the theme in web/themes/contrib/jarvis and the
jarvis_canvas module in web/modules/custom/jarvis-modules/jarvis_canvas
(nested under the package name — Drupal discovers it there), with the contrib
modules in web/modules/contrib.
themes/contrib is not a mistake: the theme declares "type": "drupal-theme",
which stock installer-paths route to contrib, and Drupal loads it the same
either way. To keep it under themes/custom, add "imrodmartin/jarvis" to the
web/themes/custom/{$name} entry of extra.installer-paths and move that
entry above web/themes/contrib/{$name} — composer/installers takes the
first matching entry in file order, so a later package-name match loses to an
earlier type:drupal-theme.
Switching from drupal/jarvis
A site whose root composer.json requires drupal/jarvis (every site that
required the theme or a Jarvis recipe before 4.5.0 — recipe unpacking copies
the requirement into your root file) swaps the name once:
ddev composer remove drupal/jarvis --no-update ddev composer require 'imrodmartin/jarvis:^4.5' 'imrodmartin/jarvis-modules:^2.3' ddev drush cache:rebuild
The theme stays in the same directory and keeps the jarvis machine name, so
Drupal sees no change. Until you do this, composer install keeps working from
your lock file, but a composer update that touches the theme fails with
found drupal/jarvis[v4.4.x] in the lock file but not in remote repositories:
composer reads a GitHub repository's package name from its default branch,
and replace satisfies other packages that require drupal/jarvis, not a
root requirement.
If you put "drupal/jarvis" in extra.installer-paths to keep the theme under
themes/custom, change it to "imrodmartin/jarvis" before running the
require, or the theme moves to themes/contrib.
Then apply a recipe
The theme ships components and templates; the config they need — media types, image styles, text formats, Canvas component entities — comes from a recipe. Both recipes are composer packages of their own, so you do not need a checkout of anything:
# A blank site: builds the whole thing (theme, Canvas, demo content, AI stack). ddev composer config repositories.jarvis-recipe '{"type":"vcs","url":"https://github.com/imrodmartin/jarvis-recipe","no-api":true}' ddev composer require imrodmartin/jarvis-recipe drupal/ckeditor5_markdown drupal/default_content:^2.0@beta drupal/ai_media_image:^1.0@alpha ddev drush recipe /var/www/html/recipes/jarvis-recipe ddev drush cache:rebuild # also organises the Canvas component folders
# A site that already has its own content and config: adds Jarvis alongside it, # changes no theme, no front page, no content. ddev composer config repositories.jarvis-install-recipe '{"type":"vcs","url":"https://github.com/imrodmartin/jarvis-install-recipe","no-api":true}' ddev composer require imrodmartin/jarvis-install-recipe ddev drush recipe /var/www/html/recipes/jarvis-install-recipe ddev drush cache:rebuild
Pass an absolute container path: ddev drush resolves relative paths from the
docroot, while recipes/ sits at the project root. The full walkthrough —
including what the existing-site recipe leaves alone, and how to update — is
docs/INSTALL.md
in the jarvis-bootstrap-recipe repo.
Do not pre-install Canvas or the theme. Earlier revisions of this file told you to run
pm:install canvas+theme:install jarvis+cache:rebuildfirst. That now breaks the install: the rebuild makes Canvas auto-create component entities and makes Drupal auto-place the theme's blocks, and a recipe refuses to import config that already exists and differs — you getThe configuration '…' exists already and does not match the recipe's configuration.The recipe lists both modules and the theme in its own
install:list, so it creates all of that itself in the right order. Verified end to end against an empty database: 23/23 components enabled, blocks in their intended regions, 7 nodes and 2 Canvas pages rendering.
What the recipe sets up
The authoritative list is the recipe's own README in the jarvis-bootstrap-recipe repo. In short, it:
- Installs Canvas, this theme, and the
jarvis_canvasglue module, plus the supporting contrib and site-feature modules - Ships exported Canvas component config for all 23 SDCs, content templates for the Blog and Basic content types, page regions, and 5 reusable patterns
- Imports base config: image styles (
jarvis_hero_banner,wide,portrait), thefocal_pointcrop type, media types + fields, thejarvis_html/jarvis_full_htmltext formats, and theme settings - Imports demo content: 7 nodes, 2 Canvas pages (a component showcase and
Component Examples), block content, media, and menu links — and sets the front page
to the showcase (
/page/2); change it under Configuration → Basic site settings if unwanted
Because the component config is exported from this theme release, the content templates and Canvas pages pin matching component versions — after bumping the theme, re-export that config into the recipe.
License
GPL-2.0-or-later
Bundled third-party assets
This theme bundles Bootstrap v5.3.8 under libraries/bootstrap/:
- Bootstrap — Copyright 2011-2025 The Bootstrap Authors, licensed under the MIT License, which is GPLv2-compatible. Source: https://getbootstrap.com/
No other third-party assets are bundled. Fonts are fetched from Google Fonts at
the site owner's request via the theme settings form and stored locally under
public://jarvis-fonts/; none ship with the theme.
Documentation
Full documentation is under docs/ and published at
https://project.pages.drupalcode.org/jarvis.
The two main documents are the Handbook for site builders, docs/handbook.html, and the Technical Guide for developers, docs/jarvis-guide.html.
Everything else in docs/ is short reference material: installation,
configuration, and usage.
The handbook is also kept as two halves, for anyone who wants one without the
other. docs/training.html is the explanation on its
own. TUTORIAL.md is the twelve step build on its own.