Display Builder with USWDS

This project is not covered by Drupal’s security advisory policy.

Start a new Drupal site on USWDS, the U.S. Web Design System, with Display Builder set up.
Pick this one if you build for a U.S. public sector client.

The 1.x branch is in alpha. It needs UI Suite USWDS 5.0+, Drupal 11.4+ and Display Builder 1.0+. For a new site with the Minimal profile only.

What you get

  • The UI Suite USWDS theme: USWDS 3.13 components from a CDN, nothing to build or download.
  • Section presets, and a front page built from them: a SaaS landing with hero, features, pricing, FAQ and call to action.
  • The Display Builder CMS recipe: clean paths, redirects, search and a sitemap.
  • No visual controls.
  • Not a government website: the official government banner is off.

Installation

  • Start with Drupal 11.4+, only new website with profile minimal is supported
composer create-project drupal/recommended-project:^11.4 drupal_uswds
cd drupal_uswds

Quick Recipe Setup (11.4+ only)

Display Builder ships 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_uswds:^1.0@alpha drupal/display_builder:^1.0@beta drupal/ui_suite_uswds:^5.0@alpha

Composer reads 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

  • 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)
ddev exec dr recipe ../recipes/display_builder_uswds

On success, it prints:

[OK] Display Builder with USWDS 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

Learn more

Support

Enjoying this project? Back my open source work on Liberapay: every contribution keeps it maintained.

Need a feature, a fix or a hand on your Drupal project? I take sponsored work and freelance missions. Let's talk.

Project information

Releases