Repository navigation
Admin UI: Update the Modern, Fresh, Midnight, and Ectoplasm scheme colors - #87673
Conversation
…lors Since #86614 and #82542, the brand fill in the dark sidebar carries a dark label for every admin scheme: white cannot reach 4.5:1 on both the fill and its active state while the fills keep 3:1 against the neutral surfaces. Darken the Modern, Fresh, and Midnight backgrounds to the lightest seeds for which the ramp keeps a white label, and darken the Fresh and Midnight primary colors where the fill needs it. Return Ectoplasm to its original Core colors, with the background tuned so the sidebar matches #523f6d. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +351 B (0%) Total Size: 8.73 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. List in
|
`ThemeProvider` copied the primary seed into `--wp-admin-theme-color` unchanged. Legacy consumers draw that variable as a stroke or as text on the neutral surfaces, so a seed that is too light or too dark for the provider background left them below 3:1, for example the Ectoplasm lime on white or every admin scheme primary in a dark sidebar. Keep the seed when it reaches 3:1 against the three neutral surfaces. Otherwise use the primary ramp's brand text color, which meets 4.5:1 there.
Legacy consumers often draw `--wp-admin-theme-color` as a fill under white text. Swapping a low-contrast seed for the brand text color broke those fills on dark backgrounds, where that color is light. Instead, keep the seed when white text reaches 4.5:1 on it, and otherwise darken it, keeping its hue, until it does. A color that dark also stands out from light surfaces. Every bundled admin scheme except Ectoplasm keeps its seed.
…rimary" This reverts commit 7f30c12.
This reverts commit 56a2441.
…urfaces" This reverts commit 63380ce.
Core's original `#a3b745` lime is too light for the white text that legacy consumers put on `--wp-admin-theme-color`, which takes the primary unchanged. `#697900` keeps its hue at 4.8:1 against white, and the sidebar brand fill still comes out close to the original lime.
The Global Styles shadow controls draw `--wp-admin-theme-color` as text on `#f0f0f0`, where `#697900` fell to 4.25:1 from 4.91:1. `#606e00` keeps the lime hue at 4.94:1 there and 5.63:1 with white text, and the sidebar brand fill stays close to Core's original lime.
ramonjd
left a comment
There was a problem hiding this comment.
Thanks for getting this up so quickly. I tested manually and it's looking as I'd expect.
This also affects the post editor, but a smoke test revealed no anomalies.
I'll defer to your judgement, and the components crew for final say
| color scheme | before | before hover | after | after hover |
|---|---|---|---|---|
| ectoplasm | ![]() |
![]() |
![]() |
![]() |
| modern | ![]() |
![]() |
![]() |
![]() |
| fresh | ![]() |
![]() |
![]() |
![]() |
| midnight | ![]() |
![]() |
![]() |
![]() |
















Follow-up to #86614. Fixes the black button label in the Modern scheme.
What?
Primary buttons in the dark sidebar get white labels again in Modern, Fresh, and Midnight. Ectoplasm returns to Core's original purple sidebar, with a lime brand fill.
Why?
#86614 (Modern, Ectoplasm) and #82542 (Fresh, Midnight) gave these buttons dark labels. They meet WCAG but read worse than white.
How?
White text needs 4.5:1 on the button and its hover color, and both fills need 3:1 against the sidebar's popup surface. Today's sidebars are too light for all of that, so each background is now a darker seed for which the unchanged ramp algorithm returns a white label with no warnings. Ectoplasm's background is tuned so the sidebar lands on Core's
#523f6d, as #87420 did for Blue and Sunrise. Its primary,#606e00, has the hue of Core's#a3b745lime but is slightly darker than the current#646c3e, because legacy styles put white text on--wp-admin-theme-colorand use it as text. On the sidebar, the ramp lightens it back to a lime (#9aaa4f).#222524→#121514#1b1e1d→#070a09#3858e9#25292b→#121618#1e2325→#070b0d#007cba→#006daa#3d4042→#111416#373b3d→#06080a#cf4339→#bf332b#4f386e→#544769#4a3269→#523f6d#646c3e→#606e00The generated
05-scheme-tokens.css, the base-styles scheme colors, and the Storybook examples follow.Limitations
Testing Instructions
Testing Instructions for Keyboard
Tab to Review 1 change… in each scheme. The focus ring is visible and the label stays readable.
Screenshots or screencast
Site editor Pages screen with one unsaved change. Before is trunk (
550d7c6).Modern
Fresh
Midnight
Ectoplasm
Review button on hover, all four schemes
TODO / Follow-ups
--wp-admin-theme-colorconsumers to WPDS tokens (WIP across several PRs)Use of AI Tools
Claude Code derived the colors with the ramp algorithm, implemented the change, and captured the screenshots. Codex (Sol and Astra) reviewed it locally. I chose the approach and the Ectoplasm colors.
🤖 Generated with Claude Code