Skip to main content

Five new themes for Display Builder

The Bulma recipe for Display Builder

Display Builder builds nothing on its own: it places the components the theme gives it. Until now, two demo recipes showed the result, with Bootstrap and the DSFR.

On November 26 and 27, I released five new themes in alpha, each with its demo recipe: Bulma, Basecoat, PatternFly, Pico and Web Awesome.

Five frameworks, five approaches

  • Bulma CSS: a CSS framework with no JavaScript. The new 4.x branch ships Bulma 1.0.4.
  • Basecoat: shadcn/ui ported to HTML and Tailwind CSS. The name may still change, the project waits for the Basecoat author's answer.
  • PatternFly: PatternFly 6, Red Hat's open source design system.
  • Pico: semantic HTML, with 20 colors to choose from.
  • Webawesome: the Web Awesome 3 web components.

Each theme declares its components as SDC. Display Builder is suggested, not required: core is enough.

The same contract everywhere

Bulma, Basecoat and Pico follow one rule: when a concept exists in UI Suite Bootstrap, the component keeps the same ID, slots and props. A card stays a card from one theme to the next.

Each theme also ships, in config/optional, a Display Builder profile, presets (hero, features, pricing, FAQ, call to action, layouts) and a site page layout. A recipe does not install optional config by itself, so it imports it :

config:
  import:
    bulma: '*'

One recipe per theme

Each demo recipe starts from Display Builder CMS Recipe, itself based on Display Builder Base Recipe. It installs the theme, its presets and sample pages. For Bulma: a SaaS front page, a team page and a docs page.

On a new Drupal 11.4.11 or later site with the minimal profile:

composer require drupal/display_builder_bulma:^1.0@alpha drupal/display_builder:^1.0@beta drupal/bulma:^4.0@alpha
drush si -y minimal
drush recipe ../recipes/display_builder_bulma

The recipe README has the full setup, with Font Awesome in /libraries: without it, the icons on the demo pages stay empty.

The Bulma recipe also installs UI Controls with its mapping: in the builder, Bulma styles show as a spacing box, color swatches and buttons.

The challenges

Each framework has its own rules, and the builder has to follow them:

  • Pico only styles what sits inside a .pico element: the theme puts the class on the html element of every page.
  • Web Awesome also styles bare HTML elements. Those styles load everywhere, except in the HTMX fragments Display Builder swaps in and in its admin pages.
  • On mobile, the Bulma and Basecoat menus move into a native popover, with no JavaScript.

What's next

The themes and recipes are in alpha, and Display Builder is still in beta. Next step: stabilize them with your feedback.

You can try the builder on the public demo: no sign-up, and it resets regularly. Ideas and bugs go to the Display Builder feedback board, whatever your theme, or to each project's issue queue.

Tell me about your project

Describe your site and what you need. I'll reply within 2 business days. The quote is free.

Or by email: contact[at]developpeur-drupal[dot]com