Title: register_admin_color_schemes
Published: April 25, 2014
Last modified: February 24, 2026

---

# register_admin_color_schemes()

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#see-also)
 * [Source](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#wp--skip-link--target)

Registers the default admin color schemes.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#description)󠁿

Registers the initial set of eight color schemes in the Profile section of the dashboard
which allows for styling the admin menu and toolbar.

### 󠀁[See also](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#see-also)󠁿

 * [wp_admin_css_color()](https://developer.wordpress.org/reference/functions/wp_admin_css_color/)

## 󠀁[Source](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#source)󠁿

    ```php
    function register_admin_color_schemes() {
    	$suffix  = is_rtl() ? '-rtl' : '';
    	$suffix .= SCRIPT_DEBUG ? '' : '.min';

    	wp_admin_css_color(
    		'fresh',
    		_x( 'Default', 'admin color scheme' ),
    		false,
    		array( '#1d2327', '#2c3338', '#2271b1', '#72aee6' ),
    		array(
    			'base'    => '#a7aaad',
    			'focus'   => '#72aee6',
    			'current' => '#fff',
    		)
    	);

    	wp_admin_css_color(
    		'light',
    		_x( 'Light', 'admin color scheme' ),
    		admin_url( "css/colors/light/colors$suffix.css" ),
    		array( '#e5e5e5', '#999', '#d64e07', '#04a4cc' ),
    		array(
    			'base'    => '#999',
    			'focus'   => '#ccc',
    			'current' => '#ccc',
    		)
    	);

    	wp_admin_css_color(
    		'modern',
    		_x( 'Modern', 'admin color scheme' ),
    		admin_url( "css/colors/modern/colors$suffix.css" ),
    		array( '#1e1e1e', '#3858e9', '#7b90ff' ),
    		array(
    			'base'    => '#f3f1f1',
    			'focus'   => '#fff',
    			'current' => '#fff',
    		)
    	);

    	wp_admin_css_color(
    		'blue',
    		_x( 'Blue', 'admin color scheme' ),
    		admin_url( "css/colors/blue/colors$suffix.css" ),
    		array( '#096484', '#4796b3', '#52accc', '#74B6CE' ),
    		array(
    			'base'    => '#e5f8ff',
    			'focus'   => '#fff',
    			'current' => '#fff',
    		)
    	);

    	wp_admin_css_color(
    		'midnight',
    		_x( 'Midnight', 'admin color scheme' ),
    		admin_url( "css/colors/midnight/colors$suffix.css" ),
    		array( '#25282b', '#363b3f', '#69a8bb', '#e14d43' ),
    		array(
    			'base'    => '#f1f2f3',
    			'focus'   => '#fff',
    			'current' => '#fff',
    		)
    	);

    	wp_admin_css_color(
    		'sunrise',
    		_x( 'Sunrise', 'admin color scheme' ),
    		admin_url( "css/colors/sunrise/colors$suffix.css" ),
    		array( '#b43c38', '#cf4944', '#dd823b', '#ccaf0b' ),
    		array(
    			'base'    => '#f3f1f1',
    			'focus'   => '#fff',
    			'current' => '#fff',
    		)
    	);

    	wp_admin_css_color(
    		'ectoplasm',
    		_x( 'Ectoplasm', 'admin color scheme' ),
    		admin_url( "css/colors/ectoplasm/colors$suffix.css" ),
    		array( '#413256', '#523f6d', '#a3b745', '#d46f15' ),
    		array(
    			'base'    => '#ece6f6',
    			'focus'   => '#fff',
    			'current' => '#fff',
    		)
    	);

    	wp_admin_css_color(
    		'ocean',
    		_x( 'Ocean', 'admin color scheme' ),
    		admin_url( "css/colors/ocean/colors$suffix.css" ),
    		array( '#627c83', '#738e96', '#9ebaa0', '#aa9d88' ),
    		array(
    			'base'    => '#f2fcff',
    			'focus'   => '#fff',
    			'current' => '#fff',
    		)
    	);

    	wp_admin_css_color(
    		'coffee',
    		_x( 'Coffee', 'admin color scheme' ),
    		admin_url( "css/colors/coffee/colors$suffix.css" ),
    		array( '#46403c', '#59524c', '#c7a589', '#9ea476' ),
    		array(
    			'base'    => '#f3f2f1',
    			'focus'   => '#fff',
    			'current' => '#fff',
    		)
    	);
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/general-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/general-template.php#L4875)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/general-template.php#L4875-L4986)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_admin_css_color()](https://developer.wordpress.org/reference/functions/wp_admin_css_color/)`wp-includes/general-template.php` |

Registers an admin color scheme css file.

  | 
| [is_rtl()](https://developer.wordpress.org/reference/functions/is_rtl/)`wp-includes/l10n.php` |

Determines whether the current locale is right-to-left (RTL).

  | 
| [_x()](https://developer.wordpress.org/reference/functions/_x/)`wp-includes/l10n.php` |

Retrieves translated string with gettext context.

  | 
| [admin_url()](https://developer.wordpress.org/reference/functions/admin_url/)`wp-includes/link-template.php` |

Retrieves the URL to the admin area for the current site.

  |

[Show 2 more](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/register_admin_color_schemes/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fregister_admin_color_schemes%2F)
before being able to contribute a note or feedback.