drupal / display_builder_webawesome
Provide a Display Builder Demo website with Web Awesome.
Package info
git.drupalcode.org/project/display_builder_webawesome.git
Type:drupal-recipe
pkg:composer/drupal/display_builder_webawesome
Requires
- drupal/display_builder: ^1.0
- drupal/display_builder_base: ^1.1.4
- drupal/display_builder_cms: ^1.0.2
- drupal/generic_components: ^1.2
- drupal/ui_controls: ^1.3.1
- drupal/webawesome: ^1.0.0-alpha3
Requires (Dev)
None
Suggests
- drupal/ui_icons: Icon picker.
- npm-asset/fortawesome--fontawesome-free: Font Awesome Free icons served from /libraries: the icon packs and, with the local source, wa-icon.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 15:48:25 UTC
README
This recipe extends the Display Builder CMS recipe to provide a ready-to-use Web Awesome experience in Drupal thanks to the Web Awesome theme and UI Suite modules.
Introduction
- Web Awesome theme
A site-builder-friendly theme on Web Awesome 3 web components.\ Use Web Awesome parts (components, layouts and utilities) directly from the Drupal back office (with Display Builder) in a low-code way.
- UI Suite provides a cohesive set of modules to implement full design systems in Drupal.
- Display Builder leverages the full UI Suite API in a modern visual builder. The front page, a SaaS landing, shows the section presets at work: mockup hero, features, steps, stats, pricing, FAQ and call to action. A Team page and a DrupalCon Orlando 2027 page show the team, conversation, stats and key dates sections. A Docs page walks through the install, the commands and the builder panels.
Status
The recipe needs the Web Awesome theme 1.0, with Display Builder support.
This recipe and the theme are not affiliated with, sponsored by or endorsed by Fonticons, Inc. "Web Awesome" and its logos are trademarks of Fonticons, Inc. Web Awesome Core is used under the MIT license. The recipe uses no Web Awesome logo.
Admin theme
The recipe sets Default Admin as the admin theme, in place of Claro. It is experimental in Drupal 11.4. The Theme button of the builder, light, dark or system, shows on Default Admin or Gin only.
Visual controls
The recipe installs UI Controls
and ships its mapping, ui_controls.mapping.webawesome: in Display Builder,
the Web Awesome styles show as typography buttons, gap and flexbox controls
and a radius control, and the button color and size as two axes. Web Awesome
has no margin, padding, color or shadow utility classes, so those controls do
not show. Its layout utility, stack, cluster, grid and the others, stays in
the "More styles" list.
Images
The demo images come from the display_builder_bootstrap recipe. Their sources and licenses are listed in its IMAGES.md.
Credits
- Web Awesome, by Fonticons, Inc., MIT license. Not affiliated with, sponsored by or endorsed by Fonticons, Inc.
- Font Awesome Free, icons under CC BY 4.0, served from
/libraries. The attribution comment stays in the SVG files. - Display Builder and the UI Suite team.
- Demo content and structure from the display_builder_bootstrap, display_builder_bulma and display_builder_patternfly recipes.
Recipe documentation
First see general Drupal recipe documentation:
Then for reference Display Builder documentation:
Installation
- Start with Drupal 11.4.11+, only new website with profile minimal is supported
composer create-project drupal/recommended-project:~11.4.11 drupal_webawesome
cd drupal_webawesome
Quick Libraries Setup
The icons of the demo come from Font Awesome Free, served from /libraries: they are used in the 403, 404 and password reset pages, buttons, date badges and two main menu links, and render empty without the library. Web Awesome itself loads from the jsDelivr CDN, or from /libraries/webawesome if you pick Local in the theme settings. With the local source, wa-icon reads the same Font Awesome package.
Enable asset packagist, see Drupal documentation:
composer config allow-plugins.oomphinc/composer-installers-extender true
composer require oomphinc/composer-installers-extender:^2
You can accept (y) if composer ask:
Do you trust "oomphinc/composer-installers-extender" to execute code and wish to enable it now?
Install the Font Awesome Free package:
composer config repo.asset-packagist composer https://asset-packagist.org
composer config --merge --json extra.installer-types '["npm-asset", "bower-asset"]'
composer config --merge --json extra.installer-paths '{"web/libraries/{$name}":["type:drupal-library", "type:npm-asset", "type:bower-asset"]}'
composer require npm-asset/fortawesome--fontawesome-free:^7.3
Optional, the local source: asset-packagist has no package for Web Awesome, so unpack its npm tarball, see the theme's README.
Quick Recipe Setup (11.4+ only)
Display Builder ships two patches for UI Patterns. Install composer-patches first, so Composer applies them. More in the Display Builder installation page, section UI Patterns patches.
composer config allow-plugins.cweagans/composer-patches true
composer require cweagans/composer-patches:^2
Install the recipe:
composer require drupal/display_builder_webawesome:^1.0@alpha drupal/display_builder:^1.0@beta drupal/webawesome:^1.0@alpha
Display Builder has no stable 1.0 release yet, and this recipe and the Web Awesome theme are in alpha.
Composer reads the stability flags only from your project. Keep them, or set
minimum-stability to alpha in your composer.json.
Install Drush (recommended):
composer require drush/drush
Drupal Installation
Recipe is meant for a new website and can not be applied on an existing profile, only minimal profile is supported.
- Install the Drupal Minimal profile
For example, with DDEV and Drush:
ddev config --project-type=drupal11 --docroot=web
ddev drush si -y minimal
- Apply this recipe (Drupal 11.4+ only)
Run this command with DDEV, use ddev exec:
ddev exec dr recipe ../recipes/display_builder_webawesome
If the command succeeds, you should see the following output:
[OK] Display Builder with Web Awesome applied successfully
Important: Clear the Drupal cache after applying the recipe.
ddev drush cache:rebuild
Visit your website, for example with DDEV:
ddev launch
Login as admin to your website:
ddev drush uli
AI assistant, optional
Two ways to build displays with AI.
Chat in the builder. Display Builder AI adds a chat island to the builder. Apply the Display Builder AI Recipe on top. It asks for an OpenAI or Anthropic API key:
ddev composer require drupal/display_builder_ai:^1.0@alpha drupal/display_builder_ai_recipe:^1.0@alpha drupal/display_builder_tools:^1.0@beta drupal/tool:^1.0@beta
ddev exec dr recipe ../recipes/display_builder_ai_recipe
Your own local agent. Display Builder Tools lets an agent that speaks MCP, such as Claude Code, read and change displays through MCP Server. It is the layer Display Builder AI builds on:
ddev composer require drupal/display_builder_tools:^1.0@beta drupal/tool:^1.0@beta drupal/mcp_server:^2.0@beta drupal/mcp_server_tool_bridge:^1.0@beta
ddev drush en -y display_builder_tools mcp_server_tool_bridge
Then create an account for the agent and register the server in your agent, see the Display Builder Tools README.