From acbdc0c4fe01881c23a58bfdd74b22b897f70461 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Mon, 30 Nov 2026 15:39:45 +0100 Subject: [PATCH 1/7] Administration: Align the admin color schemes with the editor sidebar. Update the Core admin color schemes to the colors that Gutenberg's admin UI uses as of WordPress/gutenberg#87673. The classic admin menu and the admin bar now match the editor sidebar for each scheme. - Modern, Fresh, and Midnight use near-black sidebars, so that the primary button in the editor sidebar keeps a white label. Fresh uses `#006daa` and Midnight uses `#bf332b` as the highlight color. - Ectoplasm goes back to its original lime menu highlight, `#a3b745`, with a dark label, on a `#513e6e` sidebar. The content-area highlight stays `#646c3e`, which matches the Ectoplasm button color from `@wordpress/base-styles`. - Blue, Coffee, Light, Ocean, and Sunrise use the exact sidebar colors that the editor derives for them. - Fresh has no Sass scheme, so its colors change in the default stylesheets, in the rules that the other schemes override. - The color previews in `register_admin_color_schemes()` follow the new values. Follow-up to [62454]. Co-Authored-By: Claude Opus 5.5 --- src/wp-admin/css/admin-menu.css | 12 +++++------ src/wp-admin/css/colors/blue/colors.scss | 2 +- src/wp-admin/css/colors/coffee/colors.scss | 2 +- src/wp-admin/css/colors/ectoplasm/colors.scss | 7 ++++--- src/wp-admin/css/colors/light/colors.scss | 2 +- src/wp-admin/css/colors/midnight/colors.scss | 5 +++-- src/wp-admin/css/colors/modern/colors.scss | 3 ++- src/wp-admin/css/colors/ocean/colors.scss | 2 +- src/wp-admin/css/colors/sunrise/colors.scss | 2 +- src/wp-admin/css/common.css | 20 +++++++++---------- src/wp-admin/css/forms.css | 2 +- src/wp-admin/css/list-tables.css | 2 +- src/wp-admin/css/media.css | 2 +- src/wp-admin/css/themes.css | 12 +++++------ src/wp-includes/css/admin-bar.css | 6 +++--- src/wp-includes/general-template.php | 18 ++++++++--------- .../includes/misc/adminColorSchemePicker.php | 2 +- 17 files changed, 52 insertions(+), 49 deletions(-) diff --git a/src/wp-admin/css/admin-menu.css b/src/wp-admin/css/admin-menu.css index 06ad951f4dd21..2cd64e84f807d 100644 --- a/src/wp-admin/css/admin-menu.css +++ b/src/wp-admin/css/admin-menu.css @@ -3,7 +3,7 @@ #adminmenu, #adminmenu .wp-submenu { width: 160px; - background-color: #1d2327; + background-color: #070b0d; } #adminmenuback { @@ -122,7 +122,7 @@ word-wrap: break-word; padding: 6px 0; z-index: 9999; - background-color: #2c3338; + background-color: #1a1e21; box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); } @@ -161,7 +161,7 @@ #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus-visible { position: relative; - background-color: #1d2327; + background-color: #070b0d; color: #72aee6; } @@ -174,7 +174,7 @@ #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.current a.menu-top, #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head { - background: #2271b1; + background: #006daa; color: #fff; } @@ -399,7 +399,7 @@ ul#adminmenu > li.current > a.current::after { #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover::after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within::after { - border-right-color: #2c3338; + border-right-color: #1a1e21; } #adminmenu li.menu-top:hover .wp-menu-image img, @@ -817,7 +817,7 @@ li#wp-admin-bar-menu-toggle { } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { - background: #2c3338; + background: #1a1e21; } li#wp-admin-bar-menu-toggle { diff --git a/src/wp-admin/css/colors/blue/colors.scss b/src/wp-admin/css/colors/blue/colors.scss index f1d5f66a1fa8d..3f237fdc7cf9c 100644 --- a/src/wp-admin/css/colors/blue/colors.scss +++ b/src/wp-admin/css/colors/blue/colors.scss @@ -2,7 +2,7 @@ $highlight-color: #437aa8; @use "../_admin.scss" with ( $scheme-name: "blue", - $base-color: #245278, + $base-color: #215177, $icon-color: #e5f8ff, $highlight-color: $highlight-color, $notification-color: #e1a948, diff --git a/src/wp-admin/css/colors/coffee/colors.scss b/src/wp-admin/css/colors/coffee/colors.scss index 30e9e0649f4cf..905cfe2d2f761 100644 --- a/src/wp-admin/css/colors/coffee/colors.scss +++ b/src/wp-admin/css/colors/coffee/colors.scss @@ -1,4 +1,4 @@ -$base-color: #5c4c40; +$base-color: #574b42; @use "../_admin.scss" with ( $scheme-name: "coffee", diff --git a/src/wp-admin/css/colors/ectoplasm/colors.scss b/src/wp-admin/css/colors/ectoplasm/colors.scss index b2c4005313e50..10d153185c000 100644 --- a/src/wp-admin/css/colors/ectoplasm/colors.scss +++ b/src/wp-admin/css/colors/ectoplasm/colors.scss @@ -1,4 +1,4 @@ -$base-color: #4a3369; +$base-color: #513e6e; @use "../_admin.scss" with ( $scheme-name: "ectoplasm", @@ -6,8 +6,9 @@ $base-color: #4a3369; $icon-color: #ece6f6, $highlight-color: #646c3e, $notification-color: #d46f15, - $menu-highlight-text: #fff, - $menu-highlight-icon: #fff, + $menu-highlight-text: #1e1e1e, + $menu-highlight-icon: #1e1e1e, + $menu-highlight-background: #a3b745, $menu-bubble-text: #1e1e1e, $menu-submenu-focus-text: #fff, diff --git a/src/wp-admin/css/colors/light/colors.scss b/src/wp-admin/css/colors/light/colors.scss index e53e4daed1aff..89baa4c718d75 100644 --- a/src/wp-admin/css/colors/light/colors.scss +++ b/src/wp-admin/css/colors/light/colors.scss @@ -6,7 +6,7 @@ $menu-avatar-frame: #aaa; @use "../_admin.scss" with ( $scheme-name: "light", - $base-color: #e5e5e5, + $base-color: #e1e5e4, $icon-color: #6a6a6a, $text-color: $text-color, $highlight-color: $highlight-color, diff --git a/src/wp-admin/css/colors/midnight/colors.scss b/src/wp-admin/css/colors/midnight/colors.scss index 67f6f665a8567..d2dc503fcc0ef 100644 --- a/src/wp-admin/css/colors/midnight/colors.scss +++ b/src/wp-admin/css/colors/midnight/colors.scss @@ -1,13 +1,14 @@ @use "sass:color"; -$base-color: #333c42; -$highlight-color: #cf4339; +$base-color: #06080a; +$highlight-color: #bf332b; $notification-color: #69a8bb; @use "../_admin.scss" with ( $scheme-name: "midnight", $base-color: $base-color, $highlight-color: $highlight-color, + $menu-submenu-background: #191d1f, $notification-color: $notification-color, $menu-highlight-text: #fff, $menu-highlight-icon: #fff, diff --git a/src/wp-admin/css/colors/modern/colors.scss b/src/wp-admin/css/colors/modern/colors.scss index 45c750c0f583a..087931119e73e 100644 --- a/src/wp-admin/css/colors/modern/colors.scss +++ b/src/wp-admin/css/colors/modern/colors.scss @@ -4,8 +4,9 @@ $highlight-color: #3858e9; @use "../_admin.scss" with ( $scheme-name: "modern", - $base-color: #1e1e1e, + $base-color: #070a09, $highlight-color: #3858e9, + $menu-submenu-background: #1a1d1c, $menu-submenu-focus-text: #7b90ff, $notification-color: $highlight-color, diff --git a/src/wp-admin/css/colors/ocean/colors.scss b/src/wp-admin/css/colors/ocean/colors.scss index b96b7a8520f2d..9c01ceb6bc336 100644 --- a/src/wp-admin/css/colors/ocean/colors.scss +++ b/src/wp-admin/css/colors/ocean/colors.scss @@ -1,4 +1,4 @@ -$base-color: #39535a; +$base-color: #375158; @use "../_admin.scss" with ( $scheme-name: "ocean", diff --git a/src/wp-admin/css/colors/sunrise/colors.scss b/src/wp-admin/css/colors/sunrise/colors.scss index a1ef34054906e..8f18f75311896 100644 --- a/src/wp-admin/css/colors/sunrise/colors.scss +++ b/src/wp-admin/css/colors/sunrise/colors.scss @@ -1,6 +1,6 @@ @use "../_admin.scss" with ( $scheme-name: "sunrise", - $base-color: #8a312d, + $base-color: #892e2b, $highlight-color: #ad631e, $notification-color: #ccaf0b, $menu-highlight-text: #fff, diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 06ebb77c37658..fef27b92b1b38 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -263,7 +263,7 @@ td { /* Any change to the default link style must be applied to button-link too. */ a { - color: #2271b1; + color: #006daa; transition-property: border, background, color; transition-duration: 0.05s; transition-timing-function: ease-in-out; @@ -276,7 +276,7 @@ div { a:hover, a:active { - color: #135e96; + color: #005e9a; } a:focus, @@ -660,14 +660,14 @@ code { text-shadow: none; top: -3px; margin-left: 4px; - border: 1px solid #2271b1; + border: 1px solid #006daa; border-radius: 2px; background: transparent; font-size: 13px; font-weight: 500; min-height: 32px; line-height: 2.30769231; /* 30px for 32px height */ - color: #2271b1; /* use the standard color used for buttons */ + color: #006daa; /* use the standard color used for buttons */ padding: 0 12px; -webkit-appearance: none; @@ -679,8 +679,8 @@ code { .wrap .add-new-h2:hover, /* deprecated */ .wrap .page-title-action:hover { - border-color: #0a4b78; - color: #0a4b78; + border-color: #004e89; + color: #004e89; } /* lower specificity: color needs to be overridden by :hover and :active */ @@ -748,20 +748,20 @@ ul.striped > :nth-child(odd), .wp-ui-primary { color: #fff; - background-color: #2c3338; + background-color: #1a1e21; } .wp-ui-text-primary { - color: #2c3338; + color: #1a1e21; } .wp-ui-highlight { color: #fff; - background-color: #2271b1; + background-color: #006daa; } .wp-ui-text-highlight { - color: #2271b1; + color: #006daa; } .wp-ui-notification { diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index 547cd6462bc53..2e1e0d8c0ecfb 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -151,7 +151,7 @@ input[type="radio"]:checked + label::before { .wp-core-ui input[type="reset"]:hover, .wp-core-ui input[type="reset"]:active { - color: #135e96; + color: #005e9a; } td > input[type="checkbox"], diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css index f6105ad5a59fb..eff662abea1a8 100644 --- a/src/wp-admin/css/list-tables.css +++ b/src/wp-admin/css/list-tables.css @@ -797,7 +797,7 @@ th.sorted a span { } .view-switch a.current::before { - color: #2271b1; + color: #006daa; } .view-switch .view-list::before { diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css index 08155c862049e..47f3bb185e1e1 100644 --- a/src/wp-admin/css/media.css +++ b/src/wp-admin/css/media.css @@ -202,7 +202,7 @@ height: 100%; margin-top: -22px; border-radius: 22px; - background-color: #2271b1; + background-color: #006daa; box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3); } diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css index 2c59593f4392b..4d31326f1960b 100644 --- a/src/wp-admin/css/themes.css +++ b/src/wp-admin/css/themes.css @@ -228,7 +228,7 @@ body.js .theme-browser.search-loading { * The currently active theme */ .theme-browser .theme.active .theme-name { - background: #1d2327; + background: #070b0d; color: #fff; padding-right: 115px; font-weight: 300; @@ -388,14 +388,14 @@ body.js .theme-browser.search-loading { .theme-browser .theme.add-new-theme a:hover span::after, .theme-browser .theme.add-new-theme a:focus span::after { background: #fff; - color: #2271b1; + color: #006daa; } .theme-browser .theme.add-new-theme a:hover::after, .theme-browser .theme.add-new-theme a:focus::after { border-color: transparent; color: #fff; - background: #2271b1; + background: #006daa; content: ""; } @@ -1655,7 +1655,7 @@ body.full-overlay-active { .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { - color: #2271b1; + color: #006daa; } .wp-full-overlay .collapse-sidebar-arrow, @@ -1792,7 +1792,7 @@ body.full-overlay-active { .wp-full-overlay-footer .devices button:focus, .wp-full-overlay-footer .devices button.active:hover { - border-bottom-color: #2271b1; + border-bottom-color: #006daa; } .wp-full-overlay-footer .devices button.active::before { @@ -1801,7 +1801,7 @@ body.full-overlay-active { .wp-full-overlay-footer .devices button:hover::before, .wp-full-overlay-footer .devices button:focus::before { - color: #2271b1; + color: #006daa; } .wp-full-overlay-footer .devices .preview-desktop::before { diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css index 520dabb4d4a85..b88042a0fb8ef 100644 --- a/src/wp-includes/css/admin-bar.css +++ b/src/wp-includes/css/admin-bar.css @@ -123,7 +123,7 @@ html:lang(he-il) .rtl #wpadminbar * { width: 100%; min-width: 600px; /* match the min-width of the body in wp-admin/css/common.css */ z-index: 99999; - background: #1d2327; + background: #070b0d; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } @@ -171,7 +171,7 @@ html:lang(he-il) .rtl #wpadminbar * { margin: 0; padding: 0; box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); - background: #2c3338; + background: #1a1e21; display: none; position: absolute; float: none; @@ -247,7 +247,7 @@ html:lang(he-il) .rtl #wpadminbar * { /* Painted on the list item, as the item's border-radius (for its focus outline) would round the background. */ #wpadminbar:not(.mobile) .ab-top-menu > li:hover, #wpadminbar .ab-top-menu > li.hover { - background: #2c3338; + background: #1a1e21; } #wpadminbar > #wp-toolbar li:hover span.ab-label, diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index bfb400cbda4cd..c4d72a0bd3cb6 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -5260,7 +5260,7 @@ function register_admin_color_schemes() { 'modern', _x( 'Default', 'admin color scheme' ), admin_url( "css/colors/modern/colors$suffix.css" ), - array( '#1e1e1e', '#3858e9', '#7b90ff' ), + array( '#070a09', '#3858e9', '#7b90ff' ), array( 'base' => '#f3f1f1', 'focus' => '#fff', @@ -5272,7 +5272,7 @@ function register_admin_color_schemes() { 'fresh', _x( 'Fresh', 'admin color scheme' ), false, - array( '#1d2327', '#2c3338', '#2271b1', '#72aee6' ), + array( '#070b0d', '#1a1e21', '#006daa', '#72aee6' ), array( 'base' => '#c3c4c7', 'focus' => '#72aee6', @@ -5284,7 +5284,7 @@ function register_admin_color_schemes() { 'light', _x( 'Light', 'admin color scheme' ), admin_url( "css/colors/light/colors$suffix.css" ), - array( '#e5e5e5', '#6a6a6a', '#c64606', '#007cba' ), + array( '#e1e5e4', '#6a6a6a', '#c64606', '#007cba' ), array( 'base' => '#999', 'focus' => '#ccc', @@ -5296,7 +5296,7 @@ function register_admin_color_schemes() { 'blue', _x( 'Blue', 'admin color scheme' ), admin_url( "css/colors/blue/colors$suffix.css" ), - array( '#183751', '#245278', '#437aa8', '#e1a948' ), + array( '#163650', '#215177', '#437aa8', '#e1a948' ), array( 'base' => '#e5f8ff', 'focus' => '#fff', @@ -5308,7 +5308,7 @@ function register_admin_color_schemes() { 'midnight', _x( 'Midnight', 'admin color scheme' ), admin_url( "css/colors/midnight/colors$suffix.css" ), - array( '#232a2e', '#333c42', '#69a8bb', '#cf4339' ), + array( '#06080a', '#69a8bb', '#bf332b' ), array( 'base' => '#f1f2f3', 'focus' => '#fff', @@ -5320,7 +5320,7 @@ function register_admin_color_schemes() { 'sunrise', _x( 'Sunrise', 'admin color scheme' ), admin_url( "css/colors/sunrise/colors$suffix.css" ), - array( '#6f2724', '#8a312d', '#ad631e', '#ccaf0b' ), + array( '#6e2522', '#892e2b', '#ad631e', '#ccaf0b' ), array( 'base' => '#f3f1f1', 'focus' => '#fff', @@ -5332,7 +5332,7 @@ function register_admin_color_schemes() { 'ectoplasm', _x( 'Ectoplasm', 'admin color scheme' ), admin_url( "css/colors/ectoplasm/colors$suffix.css" ), - array( '#392751', '#4a3369', '#646c3e', '#d46f15' ), + array( '#3e2f55', '#513e6e', '#a3b745', '#d46f15' ), array( 'base' => '#ece6f6', 'focus' => '#fff', @@ -5344,7 +5344,7 @@ function register_admin_color_schemes() { 'ocean', _x( 'Ocean', 'admin color scheme' ), admin_url( "css/colors/ocean/colors$suffix.css" ), - array( '#2b3f44', '#39535a', '#567958', '#aa9d88' ), + array( '#293d42', '#375158', '#567958', '#aa9d88' ), array( 'base' => '#f2fcff', 'focus' => '#fff', @@ -5356,7 +5356,7 @@ function register_admin_color_schemes() { 'coffee', _x( 'Coffee', 'admin color scheme' ), admin_url( "css/colors/coffee/colors$suffix.css" ), - array( '#382e27', '#5c4c40', '#916745', '#9ea476' ), + array( '#352d28', '#574b42', '#916745', '#9ea476' ), array( 'base' => '#f3f2f1', 'focus' => '#fff', diff --git a/tests/phpunit/tests/admin/includes/misc/adminColorSchemePicker.php b/tests/phpunit/tests/admin/includes/misc/adminColorSchemePicker.php index d14a24d677ca4..8df83ef263cb7 100644 --- a/tests/phpunit/tests/admin/includes/misc/adminColorSchemePicker.php +++ b/tests/phpunit/tests/admin/includes/misc/adminColorSchemePicker.php @@ -37,7 +37,7 @@ public function test_admin_color_scheme_picker_default_selection() { 'fresh' => (object) array( 'name' => 'Default', 'url' => 'fresh.css', - 'colors' => array( '#1d2327', '#2c3338', '#2271b1', '#72aee6' ), + 'colors' => array( '#070b0d', '#1a1e21', '#006daa', '#72aee6' ), 'icon_colors' => array( 'base' => '#c3c4c7', 'focus' => '#72aee6', From a578689776ff228038d9a5867dd4d734658c74d8 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Mon, 30 Nov 2026 15:52:37 +0100 Subject: [PATCH 2/7] Administration: Fix contrast issues in the updated Ectoplasm and Fresh colors. - Paint Ectoplasm's SVG menu icons dark on the lime current and hover backgrounds. - Repaint SVG menu icons in their focus color while the menu item has keyboard focus, as on hover. - Lighten Ectoplasm's submenu text, so that toolbar secondary submenu links keep 4.5:1 contrast. - Keep the olive highlight for Ectoplasm's `.wp-ui-text-highlight` text on the page background. - Use the new Fresh highlight color for pointers and the TinyMCE menu selection. Co-Authored-By: Claude Opus 5.5 --- src/js/_enqueues/wp/svg-painter.js | 11 ++++++++--- src/wp-admin/css/colors/ectoplasm/colors.scss | 6 ++++++ src/wp-includes/css/editor.css | 2 +- src/wp-includes/css/wp-pointer.css | 10 +++++----- src/wp-includes/general-template.php | 4 ++-- 5 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/js/_enqueues/wp/svg-painter.js b/src/js/_enqueues/wp/svg-painter.js index 6a99d070d7717..c0732b6f5b9ef 100644 --- a/src/js/_enqueues/wp/svg-painter.js +++ b/src/js/_enqueues/wp/svg-painter.js @@ -58,12 +58,17 @@ wp.svgPainter = ( function( $, window, document, undefined ) { // Paint icon in base color. painter.paintElement( $element, 'base' ); - // Set hover callbacks. - $menuitem.on( 'mouseenter', function() { + // Set hover and keyboard focus callbacks. + $menuitem.on( 'mouseenter focusin', function() { painter.paintElement( $element, 'focus' ); - } ).on( 'mouseleave', function() { + } ).on( 'mouseleave focusout', function() { // Match the delay from hoverIntent. window.setTimeout( function() { + // Keep the focus color while the pointer or the keyboard focus is still on the menu item. + if ( $menuitem.is( ':hover' ) || $.contains( $menuitem[0], document.activeElement ) ) { + return; + } + painter.paintElement( $element, 'base' ); }, 100 ); } ); diff --git a/src/wp-admin/css/colors/ectoplasm/colors.scss b/src/wp-admin/css/colors/ectoplasm/colors.scss index 10d153185c000..37749040618cb 100644 --- a/src/wp-admin/css/colors/ectoplasm/colors.scss +++ b/src/wp-admin/css/colors/ectoplasm/colors.scss @@ -10,7 +10,13 @@ $base-color: #513e6e; $menu-highlight-icon: #1e1e1e, $menu-highlight-background: #a3b745, $menu-bubble-text: #1e1e1e, + $menu-submenu-text: #dcd8e2, $menu-submenu-focus-text: #fff, $form-checked: $base-color, ); + +/* The lime menu highlight is too light for text on the page background. */ +.wp-core-ui .wp-ui-text-highlight { + color: admin.$highlight-color; +} diff --git a/src/wp-includes/css/editor.css b/src/wp-includes/css/editor.css index 86c9db87b3d32..1541d7223f71a 100644 --- a/src/wp-includes/css/editor.css +++ b/src/wp-includes/css/editor.css @@ -592,7 +592,7 @@ div.mce-path { .mce-menu .mce-menu-item:focus, .mce-menu .mce-menu-item.mce-active.mce-menu-item-normal, .mce-menu .mce-menu-item.mce-active.mce-menu-item-preview { - background: #2271b1; /* See color scheme. */ + background: #006daa; /* See color scheme. */ color: #fff; } diff --git a/src/wp-includes/css/wp-pointer.css b/src/wp-includes/css/wp-pointer.css index 0d6238796d12c..729cb69766f0a 100644 --- a/src/wp-includes/css/wp-pointer.css +++ b/src/wp-includes/css/wp-pointer.css @@ -11,18 +11,18 @@ position: relative; margin: -1px -1px 5px; padding: 15px 18px 14px 60px; - border: 1px solid #2271b1; + border: 1px solid #006daa; border-bottom: none; line-height: 1.4; font-size: 14px; color: #fff; - background: #2271b1; + background: #006daa; } .wp-pointer-content h3::before { background: #fff; border-radius: 50%; - color: #2271b1; + color: #006daa; content: "\f227"; content: "\f227" / ""; font: 400 20px/1.6 dashicons; @@ -141,7 +141,7 @@ .wp-pointer-undefined .wp-pointer-arrow { top: 0; border-width: 0 13px 13px; - border-bottom-color: #2271b1; + border-bottom-color: #006daa; } .wp-pointer-top .wp-pointer-arrow-inner, @@ -150,7 +150,7 @@ margin-left: -13px; margin-top: -13px; border: 13px solid transparent; - border-bottom-color: #2271b1; + border-bottom-color: #006daa; display: block; content: " "; } diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index c4d72a0bd3cb6..e5583a376a644 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -5335,8 +5335,8 @@ function register_admin_color_schemes() { array( '#3e2f55', '#513e6e', '#a3b745', '#d46f15' ), array( 'base' => '#ece6f6', - 'focus' => '#fff', - 'current' => '#fff', + 'focus' => '#1e1e1e', + 'current' => '#1e1e1e', ) ); From 9abf6857745e7691f51201fdab56ac803f475f18 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Mon, 30 Nov 2026 16:03:33 +0100 Subject: [PATCH 3/7] Administration: Darken Ectoplasm menu icons only on the lime background. Replace the SVG painter's keyboard focus handling with CSS that uses the same selectors as the lime menu item background. The painter's hover color also applies to the purple toolbar, and its timing cannot follow `.opensub` or `:focus-visible`. - Revert the SVG painter change, and keep Ectoplasm's SVG hover color light. - Darken SVG and font menu icons on hover, with keyboard focus, while the submenu is open, and on the current item. - Keep icons light when a menu link has focus without a lime background. Co-Authored-By: Claude Opus 5.5 --- src/js/_enqueues/wp/svg-painter.js | 11 +++----- src/wp-admin/css/colors/ectoplasm/colors.scss | 26 +++++++++++++++++++ src/wp-includes/general-template.php | 2 +- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/src/js/_enqueues/wp/svg-painter.js b/src/js/_enqueues/wp/svg-painter.js index c0732b6f5b9ef..6a99d070d7717 100644 --- a/src/js/_enqueues/wp/svg-painter.js +++ b/src/js/_enqueues/wp/svg-painter.js @@ -58,17 +58,12 @@ wp.svgPainter = ( function( $, window, document, undefined ) { // Paint icon in base color. painter.paintElement( $element, 'base' ); - // Set hover and keyboard focus callbacks. - $menuitem.on( 'mouseenter focusin', function() { + // Set hover callbacks. + $menuitem.on( 'mouseenter', function() { painter.paintElement( $element, 'focus' ); - } ).on( 'mouseleave focusout', function() { + } ).on( 'mouseleave', function() { // Match the delay from hoverIntent. window.setTimeout( function() { - // Keep the focus color while the pointer or the keyboard focus is still on the menu item. - if ( $menuitem.is( ':hover' ) || $.contains( $menuitem[0], document.activeElement ) ) { - return; - } - painter.paintElement( $element, 'base' ); }, 100 ); } ); diff --git a/src/wp-admin/css/colors/ectoplasm/colors.scss b/src/wp-admin/css/colors/ectoplasm/colors.scss index 37749040618cb..b620bcf57af9f 100644 --- a/src/wp-admin/css/colors/ectoplasm/colors.scss +++ b/src/wp-admin/css/colors/ectoplasm/colors.scss @@ -20,3 +20,29 @@ $base-color: #513e6e; .wp-core-ui .wp-ui-text-highlight { color: admin.$highlight-color; } + +/* + * Menu icons are dark only where the menu item background is lime: on hover, + * with keyboard focus, while the submenu is open, and on the current item. + */ +#adminmenu li a:focus div.wp-menu-image { + color: admin.$icon-color; +} + +#adminmenu li.menu-top:hover div.wp-menu-image, +#adminmenu li.opensub > a.menu-top div.wp-menu-image, +#adminmenu li > a.menu-top:focus-visible div.wp-menu-image, +#adminmenu li.current a.menu-top div.wp-menu-image, +#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu div.wp-menu-image { + color: admin.$menu-highlight-icon; +} + +/* + * The SVG painter uses one hover color for the menu and the purple toolbar, + * so it keeps SVG menu icons light. Darken them on the lime background. + */ +#adminmenu li.menu-top:not(.current):not(.wp-has-current-submenu):hover div.wp-menu-image.svg, +#adminmenu li.opensub:not(.current):not(.wp-has-current-submenu) > a.menu-top div.wp-menu-image.svg, +#adminmenu li:not(.current):not(.wp-has-current-submenu) > a.menu-top:focus-visible div.wp-menu-image.svg { + filter: brightness(0); +} diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index e5583a376a644..583386b604172 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -5335,7 +5335,7 @@ function register_admin_color_schemes() { array( '#3e2f55', '#513e6e', '#a3b745', '#d46f15' ), array( 'base' => '#ece6f6', - 'focus' => '#1e1e1e', + 'focus' => '#fff', 'current' => '#1e1e1e', ) ); From 99d0edb68395290c08551983fcb44b75a7f38f7b Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Mon, 30 Nov 2026 16:16:27 +0100 Subject: [PATCH 4/7] Administration: Darken every Ectoplasm menu icon on the lime background. Plugins can supply menu icons as SVG data URIs, CSS backgrounds, or image URLs, and the SVG painter recolors only some of them. Turn every menu icon black with a CSS filter wherever the menu item background is lime, unless forced colors are active. Restore Ectoplasm's SVG painter colors to their previous values, so that toolbar icons keep their light color. Co-Authored-By: Claude Opus 5.5 --- src/wp-admin/css/colors/ectoplasm/colors.scss | 30 +++++++++---------- src/wp-includes/general-template.php | 2 +- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/src/wp-admin/css/colors/ectoplasm/colors.scss b/src/wp-admin/css/colors/ectoplasm/colors.scss index b620bcf57af9f..f329a5405dcd3 100644 --- a/src/wp-admin/css/colors/ectoplasm/colors.scss +++ b/src/wp-admin/css/colors/ectoplasm/colors.scss @@ -22,27 +22,25 @@ $base-color: #513e6e; } /* - * Menu icons are dark only where the menu item background is lime: on hover, - * with keyboard focus, while the submenu is open, and on the current item. + * The menu item background is lime only on hover, with keyboard focus, while the + * submenu is open, and on the current item. Keep the icon light on other focused + * menu items. */ #adminmenu li a:focus div.wp-menu-image { color: admin.$icon-color; } -#adminmenu li.menu-top:hover div.wp-menu-image, -#adminmenu li.opensub > a.menu-top div.wp-menu-image, -#adminmenu li > a.menu-top:focus-visible div.wp-menu-image, -#adminmenu li.current a.menu-top div.wp-menu-image, -#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu div.wp-menu-image { - color: admin.$menu-highlight-icon; -} - /* - * The SVG painter uses one hover color for the menu and the purple toolbar, - * so it keeps SVG menu icons light. Darken them on the lime background. + * Plugin menu icons can be light images, which the SVG painter cannot always + * recolor. Turn every icon black on the lime background, unless forced colors + * set the colors. */ -#adminmenu li.menu-top:not(.current):not(.wp-has-current-submenu):hover div.wp-menu-image.svg, -#adminmenu li.opensub:not(.current):not(.wp-has-current-submenu) > a.menu-top div.wp-menu-image.svg, -#adminmenu li:not(.current):not(.wp-has-current-submenu) > a.menu-top:focus-visible div.wp-menu-image.svg { - filter: brightness(0); +@media (forced-colors: none) { + #adminmenu li.menu-top:hover div.wp-menu-image, + #adminmenu li.opensub > a.menu-top div.wp-menu-image, + #adminmenu li > a.menu-top:focus-visible div.wp-menu-image, + #adminmenu li.current a.menu-top div.wp-menu-image, + #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu div.wp-menu-image { + filter: brightness(0); + } } diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 583386b604172..c4d72a0bd3cb6 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -5336,7 +5336,7 @@ function register_admin_color_schemes() { array( 'base' => '#ece6f6', 'focus' => '#fff', - 'current' => '#1e1e1e', + 'current' => '#fff', ) ); From 7c6dc86260122985b50a822eaac926d312855758 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Mon, 30 Nov 2026 16:52:09 +0100 Subject: [PATCH 5/7] Administration: Follow the updated Ectoplasm colors from Gutenberg. Gutenberg's admin scheme update now gives Ectoplasm a `#523f6d` sidebar and a dark lime `#606e00` primary that keeps a white label. Use the same colors for the Ectoplasm menu, and drop the overrides that the lighter `#a3b745` lime needed. Co-Authored-By: Claude Opus 5.5 --- src/wp-admin/css/colors/ectoplasm/colors.scss | 40 +++---------------- src/wp-includes/general-template.php | 2 +- 2 files changed, 6 insertions(+), 36 deletions(-) diff --git a/src/wp-admin/css/colors/ectoplasm/colors.scss b/src/wp-admin/css/colors/ectoplasm/colors.scss index f329a5405dcd3..0f6ee4ca1cddb 100644 --- a/src/wp-admin/css/colors/ectoplasm/colors.scss +++ b/src/wp-admin/css/colors/ectoplasm/colors.scss @@ -1,46 +1,16 @@ -$base-color: #513e6e; +$base-color: #523f6d; @use "../_admin.scss" with ( $scheme-name: "ectoplasm", $base-color: $base-color, $icon-color: #ece6f6, - $highlight-color: #646c3e, + $highlight-color: #606e00, $notification-color: #d46f15, - $menu-highlight-text: #1e1e1e, - $menu-highlight-icon: #1e1e1e, - $menu-highlight-background: #a3b745, + $menu-highlight-text: #fff, + $menu-highlight-icon: #fff, $menu-bubble-text: #1e1e1e, - $menu-submenu-text: #dcd8e2, + $menu-submenu-text: #dcd9e2, $menu-submenu-focus-text: #fff, $form-checked: $base-color, ); - -/* The lime menu highlight is too light for text on the page background. */ -.wp-core-ui .wp-ui-text-highlight { - color: admin.$highlight-color; -} - -/* - * The menu item background is lime only on hover, with keyboard focus, while the - * submenu is open, and on the current item. Keep the icon light on other focused - * menu items. - */ -#adminmenu li a:focus div.wp-menu-image { - color: admin.$icon-color; -} - -/* - * Plugin menu icons can be light images, which the SVG painter cannot always - * recolor. Turn every icon black on the lime background, unless forced colors - * set the colors. - */ -@media (forced-colors: none) { - #adminmenu li.menu-top:hover div.wp-menu-image, - #adminmenu li.opensub > a.menu-top div.wp-menu-image, - #adminmenu li > a.menu-top:focus-visible div.wp-menu-image, - #adminmenu li.current a.menu-top div.wp-menu-image, - #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu div.wp-menu-image { - filter: brightness(0); - } -} diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index c4d72a0bd3cb6..7547831e88a50 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -5332,7 +5332,7 @@ function register_admin_color_schemes() { 'ectoplasm', _x( 'Ectoplasm', 'admin color scheme' ), admin_url( "css/colors/ectoplasm/colors$suffix.css" ), - array( '#3e2f55', '#513e6e', '#a3b745', '#d46f15' ), + array( '#3f3054', '#523f6d', '#606e00', '#d46f15' ), array( 'base' => '#ece6f6', 'focus' => '#fff', From 001185551940236f87d165dd4ba24d84b540113a Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Mon, 30 Nov 2026 17:02:00 +0100 Subject: [PATCH 6/7] Administration: Use the new Fresh colors for the focused page title action. Co-Authored-By: Claude Opus 5.5 --- src/wp-admin/css/common.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index fef27b92b1b38..94f1846357b6b 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -685,7 +685,7 @@ code { /* lower specificity: color needs to be overridden by :hover and :active */ .page-title-action:focus { - color: #0a4b78; + color: #004e89; } /* Dashicon for language options on General Settings and Profile screens */ @@ -696,8 +696,8 @@ code { } .wrap .page-title-action:focus { - border-color: #3582c4; - box-shadow: 0 0 0 1px #3582c4; + border-color: #006daa; + box-shadow: 0 0 0 1px #006daa; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } From fe688370332a99c1ec504fc8b1545b971bc004e6 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Mon, 30 Nov 2026 17:13:03 +0100 Subject: [PATCH 7/7] Administration: Fix the Ectoplasm focus rings and the Fresh secondary toolbar menu. - Use Gutenberg's darker Ectoplasm stroke color, `#455100`, as Ectoplasm's button color. The lightened focus rings that derive from it keep 3:1 contrast on light backgrounds. - Use Gutenberg's Fresh ramp color `#2e3336` for the secondary toolbar submenu, so that its `#72aee6` links reach 5.42:1. Co-Authored-By: Claude Opus 5.5 --- src/wp-admin/css/colors/ectoplasm/colors.scss | 1 + src/wp-includes/css/admin-bar.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/css/colors/ectoplasm/colors.scss b/src/wp-admin/css/colors/ectoplasm/colors.scss index 0f6ee4ca1cddb..a463ca5416f81 100644 --- a/src/wp-admin/css/colors/ectoplasm/colors.scss +++ b/src/wp-admin/css/colors/ectoplasm/colors.scss @@ -5,6 +5,7 @@ $base-color: #523f6d; $base-color: $base-color, $icon-color: #ece6f6, $highlight-color: #606e00, + $button-color: #455100, $notification-color: #d46f15, $menu-highlight-text: #fff, $menu-highlight-icon: #fff, diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css index b88042a0fb8ef..613f2b0e5a977 100644 --- a/src/wp-includes/css/admin-bar.css +++ b/src/wp-includes/css/admin-bar.css @@ -426,7 +426,7 @@ html:lang(he-il) .rtl #wpadminbar * { #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { - background: #3c434a; + background: #2e3336; } #wpadminbar .quicklinks .menupop .ab-sub-secondary > li > a:hover,