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). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Color API

2,100 sites Security covered Drupal 10–11
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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

1 tracked project depends on this one

Activity

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

Releases

Version Type Core Release date
2.1.0 Stable 10–11 Jun 30, 2025