Make WordPress Core


Ignore:
Timestamp:
06/03/2026 09:40:38 AM (4 months ago)
Author:
youknowriad
Message:

Administration: Improve admin color scheme contrast for the editor chrome.

Update the core admin color schemes so their sidebar and primary button colors
work well when the block editor and Site Editor apply the user's admin color
scheme to the editor chrome. The chrome background is generated from a seed
through the WPDS ramp algorithm, which only emits surface colors within
specific luminance bands and cannot reproduce arbitrary colors, so several
schemes could never match.

Adjust the Blue, Coffee, Ectoplasm, Light, Midnight, Ocean, and Sunrise schemes
to bring sidebar and primary button text contrast to WCAG 2.x AA (4.5:1), keep
each scheme's character, and reduce the number of distinct colors per scheme by
reusing the selected menu item's background for the primary button (except for
Light).

Props fushar, simison, youknowriad, joen.
Fixes #65382.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/colors/blue/colors.scss

    r59656 r62454  
    1 $highlight-color: #096484;
     1$highlight-color: #437aa8;
    22
    33@use "../_admin.scss" with (
    44        $scheme-name: "blue",
    5         $base-color: #52accc,
     5        $base-color: #245278,
    66        $icon-color: #e5f8ff,
    77        $highlight-color: $highlight-color,
    88        $notification-color: #e1a948,
    9         $button-color: #e1a948,
    10 
     9        $menu-highlight-text: #fff,
     10        $menu-highlight-icon: #fff,
     11        $menu-bubble-text: #1e1e1e,
    1112        $menu-submenu-text: #e2ecf1,
    1213        $menu-submenu-focus-text: #fff,
    13         $menu-submenu-background: #4796b3,
    1414
    1515        $dashboard-icon-background: $highlight-color
Note: See TracChangeset for help on using the changeset viewer.