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). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). 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 a minimal way to color your Drupal toolbar based on your environment. It allows you to configure background and foreground colors or use predefined colors for different environments, and can optionally display an indicator for anonymous users.

The module works very much like Environment Indicator module with a minimal approach. It requires Drupal core's Toolbar (Drupal 8+) or Admin menu (Drupal 7) modules and changes the color of the Toolbar as you like.

Version 2.x now supports Gin theme and Drupal 10.

It is a simple module that does one thing, to color the Toolbar. It has no configurable user interface. All you need to do is place a line in settings.php such as,

// Drupal 7
$conf['simple_environment_indicator'] = 'DarkRed PRD';

// Drupal 8+
$settings['simple_environment_indicator'] = 'DarkRed PRD';
// or
$settings['simple_environment_indicator'] = '#fff/#666 PRD';
// or
$settings['simple_environment_indicator'] = '@PRD';
// accessible colors with #access
$settings['simple_environment_indicator'] = '@PRD#access';

The web color name(s) or hex value(s) are followed by the environment name. You can specify background color only (foreground is white) or foreground/background colors. If you use @ sign with the environment name, the predetermined color will be used.

Drupal 8+ version supports anonymous users who don't normally have access to Toolbar.

$settings['simple_environment_anonymous'] = TRUE;

If you do not like the default rendering of the environment indicator, you can
set to a string instead of a boolean value, such as,

   $settings['simple_environment_anonymous'] = "body:after { 
     content: \"STAGE\" ;
     position: fixed;
     top: 0;
     left: 0;
     padding: 0.1em 0.5em;
     font-family: monospace;
     font-weight: bold;
     color: #fff;
     background: brown;
     border: 1px solid white; }";

You would not want to display the indicator for anonymous users in production
environment, but nothing will stop you if you have a reason to do so.

Activity

Total releases
4
First release
Jun 2025
Latest release
2 weeks ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Release date
3.0.4 Stable Jul 3, 2026
3.0.3 Stable Jun 23, 2026
3.0.2 Stable Jul 30, 2025
3.0.1 Stable Jun 27, 2025