Repository navigation
Conversation
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 <noreply@anthropic.com>
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
…h 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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
…ction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 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 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to WordPress/gutenberg#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.Trac ticket: https://core.trac.wordpress.org/ticket/66890
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.Fresh and Midnight
Blue, Coffee, Light, Ocean, and Sunrise (small shifts)
Profile color previews and the front-end admin bar
Implementation notes
_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.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 Tab 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