Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module provides field types for selecting colors from the official French government's Design System (DSFR) palette. It allows you to restrict available colors, choose how color codes are integrated, generate custom CSS, and validate color contrast ratios. It uses DSFR's official color variables for compatibility with light and dark modes and automatically updates colors when the DSFR library is upgraded.

Module relating to "Design Système de l'État" (DSFR (in French)) recommendations.

This module provides color selection field types based on the official DSFR palette. For each field instance, you can:

  • Limit the selectable colors
  • Select the color code integration method
  • Wrap the selected colors into custom css code
  • Enable a contrast ratio validation from a color (hexadecimal code or DSFR color name) or from another DSFR color field.

This module uses the official DSFR color variables names rather than the hexadecimal code, ensuring compatibility with both light and dark modes.

The colors are not stored within the module itself but are imported from the official DSFR sources. The colors detection is automatic (based on a cron job), there is no additional action when you upgrade the DSFR library!

Suite of modules

This module is part of a set of projects to implement DSFR (in French) in Drupal.

It is strongly recommended to use this module in addition to the base DSFR for Drupal theme.

Useful links

Other modules

This module is inspired by the Color Field module.
As the DSFR enforces a limited color palette, this module can be used to enable a broader range of color options if needed.

Depends on

Dependencies of the latest stable release

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
11
Tracked since
Aug 2025
Latest release
1 month ago
Releases (12 mo)
9 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.2.3 Stable 10–11 Jul 24, 2026
1.2.2 Stable 10–11 Jul 24, 2026
1.2.1 Stable 10–11 Jul 24, 2026
1.2.0 Stable 10–11 Jul 23, 2026
1.1.3 Stable 10–11 Apr 24, 2026
1.1.2 Stable 10–11 Feb 5, 2026
1.1.1 Stable 10–11 Feb 5, 2026
1.1.0 Stable 10–11 Feb 5, 2026
1.0.1 Stable 10–11 Oct 29, 2025
1.0.0 Stable 10–11 Aug 13, 2025
1.x-dev Dev 10–11 Aug 7, 2025