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). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). 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). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (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.

Color API

2,168 sites Security covered
View on drupal.org

This module provides functionality for managing colors within Drupal. It includes a Color field that can be added to entities and a Color content type for storing color data, which can be represented by a name, hexadecimal code, or RGB values.

πŸ‡ΊπŸ‡¦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

Module Overview

The idea of this module is to provide a full set around of Drupal functionality behind the idea of a color, for Drupal sites. It provides a set of Drupal data types and functionality that can be used to manage colors on Drupal sites, including a Color field that can be attached to an entity, and a Color content entity type, which can be used by other contributed modules or site builders.

Currently, the module considers the idea of a 'color' as:

  • A human-readable name
  • A hexadecimal color string in the format #XXXXXX (where X is a hexadecimal character [0-9, a-f])
  • An RGB value, containing values for red, blue and green, each being a number between 0 and 255.

At its core, the module provides new Typed Data API objects for rgb_color, hexadecimal_color, and color (which contains both hexadecimal and RGB color data).

The module also provides an optional Color field, that can be attached to any entity, as well as an optional Color entity. Both of these can be enabled on the module configuration page.

Roadmap

The current plan for this module is for a version 8.x-1.0 release. The module will remain as a release candidate for the moment while any bug reports are received, which will be fixed before the full release.

At the moment, no further functionality is planned with this module. However suggestions and requests for new functionality are welcome, as long as said requests fit within the scope of what this module is intended to provide.

Activity

Total releases
1
First release
Jun 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
2.1.0 Stable Jun 30, 2025