Drupal is a registered trademark of Dries Buytaert

The DSFR for Drupal base theme provides a full set of reusable DSFR components using the Single Directory Components (SDC) approach.
This base theme must be extended by a sub-theme. The theme DSFR for Drupal can easily be integrated in your website, and is compatible with any site building strategy.

DSFR for Drupal also includes a complete DSFR configuration settings, including: Marianne logo label, light and dark themes, mourning mode, menu display (standard or mega-menu)…

DSFR for Drupal base theme can be used both on an existing site (with a gradual DSFR components integration strategy) or on a new site (full DSFR design building).

Legal Considerations

The use of the DSFR is strictly reserved for French State administration and operators only.

Please read the following page for more information: Scope of DSFR use (in French).

Requirements

This theme requires the following modules:

Components

The DSFR for Drupal theme contains more than 50 single directory components, including the full list of official DSFR components.

If you would like to know more about the French Design System, please read: Full DSFR components list (in French).

More information about Single Directory Components.

Utilities

Breakpoints

Native DSFR breakpoints list (mainly for responsive images).

Layout

Native DSFR layouts with ready to use grid system for Layout Builder.

How to install

Manual installation

  1. Download the library from https://github.com/GouvernementFR/dsfr
  2. Place the library in the root libraries folder (/libraries/dsfr).

Finally, enable and set as default "DSFR for Drupal" theme in the Drupal theme list.

Composer-based installation

Method 1 - using composer-merge-plugin (recommended for versions 2.x of the theme)

This method has the advantage of placing the maintenance of the plugin version on the hands of the module maintainers. To add the composer-merge-plugin, run
composer require wikimedia/composer-merge-plugin.

Then, update the extra section of the root composer.json file as follows:

    "extra": {
        "merge-plugin": {
            "include": [
                "[web-root]/themes/contrib/dsfr4drupal/composer.libraries.json"
            ]
        }
    }

Replace [web-root] with the value of your web root folder (usually web).
Run composer require drupal/dsfr4drupal gouv/dsfr,
the DSFR library will be installed to the libraries folder automatically.

Method 2 - using a custom repository

Copy the following into the root composer.json file's repository key.

    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "gouv/dsfr",
                "version": "1.14.3",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/GouvernementFR/dsfr/releases/download/v1.14.3/dsfr-v1.14.3.zip",
                    "type": "zip"
                },
                "require": {
                  "composer/installers": "~1.0 || ~2.0"
                }
            }
        }
    ]

Run composer require drupal/dsfr4drupal gouv/dsfr, the DSFR library will be installed to the libraries folder automatically as well.

Configuration

Several configurations options are listed in the theme settings.
Go to the appearance settings page to customize your theme.

Relative Modules

For a better experience, we invite you to use these modules in addition to the theme DSFR for Drupal:

Sponsors


Délégation à l'information et la communication (DICOM)

Activity

Total releases
17
First release
Dec 2024
Latest release
2 weeks ago
Release cadence
27 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
1.5.5 Stable Feb 13, 2026
1.5.4 Stable Nov 4, 2025
1.5.3 Stable Oct 30, 2025
1.5.2 Stable Oct 29, 2025
1.5.1 Stable Sep 29, 2025
1.5.0 Stable Sep 16, 2025
1.4.4 Stable Aug 22, 2025
1.4.3 Stable May 27, 2025
1.4.2 Stable May 15, 2025
1.4.1 Stable May 14, 2025
1.4.0 Stable Apr 11, 2025
1.3.2 Stable Feb 10, 2025
1.3.1 Stable Jan 31, 2025
1.3.0 Stable Jan 21, 2025
1.2.9 Stable Jan 21, 2025
1.2.7 Stable Dec 13, 2024
1.2.6 Stable Dec 12, 2024