This recipe extends the Display Builder CMS recipe to provide a ready-to-use DaisyUI experience in Drupal thanks to the UI Suite DaisyUI theme and UI Suite modules.
Introduction
- UI Suite DaisyUI theme
DaisyUI 5 components on Tailwind CSS, as Drupal components.
Use DaisyUI components (hero, card, navbar, menu, stats, steps, tabs and more) directly from the Drupal back office (with Display Builder) in a low-code way.
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.
- 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.
Specific version(s)
Current documentation and 1.0 branch is for Drupal 11.4+ and Display Builder 1.0+ only.
Status
The recipe needs UI Suite DaisyUI 5.0, in alpha, so the recipe stays alpha too. The theme ships no Display Builder configuration: the profile, the presets and the page layouts all live in this recipe.
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.
Utility classes
The theme's CSS is a Tailwind build of the classes its own components use. A utility class no component uses, such as py-8, is not in it. The recipe uses only classes the build has, and the theme's Styles.
Visual controls
The recipe installs UI Controls and ships its mapping, ui_controls.mapping.ui_suite_daisyui: in Display Builder, the DaisyUI styles show as a spacing box, a text size, color swatches and a shadow, the grid container and gap as buttons, and the menu layout and size as two axes. The width, glass and mask styles have no control: they stay 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
- DaisyUI, MIT license, by Pouya Saadeghi.
- Heroicons, MIT license, by Tailwind Labs.
- Page layouts, displays, views and demo content come from the Display Builder Bootstrap recipe, ported to DaisyUI components.
- Built on Display Builder and UI Suite.
Recipe documentation
First see general Drupal recipe documentation:
Then for reference Display Builder documentation:
Installation
- Start with Drupal 11.4+, only new website with profile minimal is supported
composer create-project drupal/recommended-project:^11.4 drupal_daisyui
cd drupal_daisyuiQuick Libraries Setup
The theme ships its compiled DaisyUI CSS. Its icon packs read Heroicons from /libraries/heroicons.
Enable asset packagist, see Drupal documentation:
composer config allow-plugins.oomphinc/composer-installers-extender true
composer require oomphinc/composer-installers-extender:^2You can accept (y) if composer ask:
Do you trust "oomphinc/composer-installers-extender" to execute code and wish to enable it now?
Install Heroicons:
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/heroicons:2.2.0Quick 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:^2Install the recipe:
composer require drupal/display_builder_daisyui:^1.0@alpha drupal/display_builder:^1.0@beta drupal/ui_suite_daisyui:^5.0@alphaDisplay Builder has no stable 1.0 release yet, and this recipe and the UI Suite DaisyUI 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/drushDrupal 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_daisyuiIf the command succeeds, you should see the following output:
[OK] Display Builder with DaisyUI applied successfully
Important: Clear the Drupal cache after applying the recipe.
ddev drush cache:rebuildVisit your website, for example with DDEV:
ddev launchLogin as admin to your website:
ddev drush uliAI 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_recipeYour 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_bridgeThen create an account for the agent and register the server in your agent, see the Display Builder Tools README.
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.
Ask your assistant about Display Builder Daisy UI Recipe
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha1 | Pre-release | Dec 4, 2026 |