🇺🇦

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.

Supporting organizations: 
Drupal 8/9 maintenance and development
dependency
Maintenance

Project information

Releases