Drupal is a registered trademark of Dries Buytaert

colorizer_classes

7 sites No security coverage
View on drupal.org

Adds in the ability to take a color value from Drupal and output it as a CSS Class using a Twig filter. It was built to be used with something like the Color Field module that lets users see a visual color in the admin interface but still output a CSS class in the markup.

How to use it Twig

{{ '#FFFFFF'|colorizer }} // color-white

Activity

Total releases
1
First release
Dec 2025
Latest release
2 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.1 Stable Dec 5, 2025