Opened 2 days ago
Last modified 2 days ago
#66890 assigned enhancement
Administration: Align the admin color schemes with the editor sidebar
| Reported by: | mciampini | Owned by: | mciampini |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | ui, accessibility, css |
Description (last modified by )
Gutenberg #87673 changed the editor sidebar and accent colors for the Modern, Fresh, Midnight, and Ectoplasm admin color schemes. Core's admin menu and admin bar still use the old colors, so they no longer match the editor once Core pulls in that Gutenberg change.
The linked PR updates every Core admin color scheme to the colors Gutenberg now uses for the sidebar and accent:
| Scheme | Menu background | Menu highlight |
| Modern | #1e1e1e → #070a09 | #3858e9 (unchanged)
|
| Fresh | #1d2327 → #070b0d | #2271b1 → #006daa
|
| Midnight | #333c42 → #06080a | #cf4339 → #bf332b
|
| Ectoplasm | #4a3369 → #523f6d | #646c3e → #606e00
|
| Blue | #245278 → #215177 | unchanged |
| Coffee | #5c4c40 → #574b42 | unchanged |
| Light | #e5e5e5 → #e1e5e4 | unchanged |
| Ocean | #39535a → #375158 | unchanged |
| Sunrise | #8a312d → #892e2b | unchanged |
Other changes:
- Fresh's colors are hardcoded in the base CSS, so links, page title buttons, admin pointers, and the TinyMCE menu change from
#2271b1to#006daawhere the other schemes override them. - Ectoplasm submenu text is lighter (
#dcd9e2), and focus rings use#455100, so both keep enough contrast against the new colors. - The color previews on the profile screen show the new colors.
Known limitations:
- Modern, Fresh, and Midnight become near-black and look alike. Gutenberg has the same limitation.
- The front-end admin bar always uses the Fresh colors from
admin-bar.css, so it becomes#070b0dfor every logged-in user, whatever their scheme.
Buttons and focus rings use --wp-admin-theme-color from the Gutenberg base-styles package. They get the new Fresh, Midnight, and Ectoplasm accents when Core's pinned Gutenberg commit moves past 9917665e52, so this change should be committed in step with that update.
Follow-up to [62454] / #65382.
PR with before and after screenshots: https://github.com/WordPress/wordpress-develop/pull/16348
Change History (2)
This ticket was mentioned in PR #16348 on WordPress/wordpress-develop by @mciampini.
2 days ago
#1
- Keywords has-unit-tests added
Follow-up to https://github.com/WordPress/gutenberg/pull/87673 and [62454] (#65382).
Gutenberg #87673 changes the editor sidebar and accent colors for the Modern, Fresh, Midnight, and Ectoplasm admin color schemes. Until Core changes too, the classic admin menu and the admin bar keep the old colors and no longer match the editor. This PR updates every Core scheme to the sidebar colors and accents that Gutenberg ships on trunk since that PR merged (
9917665e52).#1e1e1e→#070a09#3858e9(unchanged)#1a1d1c#1d2327→#070b0d#2271b1→#006daa#2c3338→#1a1e21#333c42→#06080a#cf4339→#bf332b#191d1f#4a3369→#523f6d#646c3e→#606e00#455100focus rings#245278→#215177#5c4c40→#574b42#e5e5e5→#e1e5e4#39535a→#375158#8a312d→#892e2bEach menu background is the
--wpds-color-background-surface-neutral-weakvalue that@wordpress/themecomputes from the scheme's seed colors. Each highlight matches the scheme's--wp-admin-theme-colorin@wordpress/base-styles. The color previews on the profile screen follow the new values.Known limitations
admin-bar.css, so it also becomes#070b0dfor every user.--wp-admin-theme-coloruses get the new Fresh (#006daa), Midnight (#bf332b), and Ectoplasm (#606e00) accents only when Core syncs the Gutenberg packages. Until then they keep the old accents, as the Ectoplasm screenshot shows. This PR should land with that sync.Screenshots
Posts screen, with the Pages flyout open, at 1280 × 800 (2x). Before is trunk at
d3efc0b16b. After is this PR. Core's Gutenberg packages are not synced yet, so content-area buttons keep the old accents.<details>
<summary>Fresh and Midnight</summary>
</details>
<details>
<summary>Blue, Coffee, Light, Ocean, and Sunrise (small shifts)</summary>
</details>
<details>
<summary>Profile color previews and the front-end admin bar</summary>
</details>
<details>
<summary>Implementation notes</summary>
_admin.scss, such as the menu, admin bar, links, pointers, and the TinyMCE menu selection. Other uses of#2271b1and#1d2327apply to every scheme, so they stay unchanged. The darker Fresh shades follow Gutenberg's Fresh tokens:#135e96→#005e9aand#0a4b78→#004e89.$menu-submenu-backgrounddarkens the base color by 7%. On a near-black base, Sass outputs an invalid negative lightness, for examplehsl(210, 25%, -3.86%). These schemes now set the submenu background to Gutenberg's popup surface, as Fresh does.#dcd9e2keeps it at 4.91:1.$button-colorlightened by 10%. With#606e00, those rings fall to 2.55:1 on light backgrounds. Gutenberg's darker Ectoplasm stroke color,#455100, keeps them at 3.69:1.#2e3336, so its#72aee6links reach 5.42:1 (4.26:1 on trunk).#06080ais not visible. In the other schemes, the darker shade keeps its previous ratio to the base color.</details>
Testing Instructions
#070a09). Hover Pages, and check that the flyout is a lighter gray (#1a1d1c). The current menu item stays blue with a white label.#006daa. In Midnight, the current menu item is#bf332b.#523f6d), and the current menu item is dark lime (#606e00) with a white label. Hover the WordPress logo in the admin bar, and check that Documentation and the other secondary links are readable.Testing Instructions for Keyboard
In each scheme, press <kbd>Tab</kbd> through the admin menu and the admin bar. Check that focused and current menu items stay readable, and that flyout submenus open with visible focus.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code, Codex
Model(s): Claude Opus 5.5, GPT-6.2 Sol
Used for: Computing the scheme colors with Gutenberg's ramp code, drafting the code changes and this description, capturing screenshots, and independent code review. The PR author reviews the result before it leaves draft.
---
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.
🤖 Generated with Claude Code