Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

Total releases
7
First release
Aug 2025
Latest release
2 months ago
Releases (12 mo)
7 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.1.3 Stable Apr 24, 2026
1.1.2 Stable Feb 5, 2026
1.1.1 Stable Feb 5, 2026
1.1.0 Stable Feb 5, 2026
1.0.1 Stable Oct 29, 2025
1.0.0 Stable Aug 13, 2025
1.x-dev Dev Aug 7, 2025