Skip to content

Admin UI: Update the Modern, Fresh, Midnight, and Ectoplasm scheme colors - #87673

Merged
ciampo merged 19 commits into
trunkfrom
update/admin-scheme-colors
Dec 1, 2026
Merged

ciampo merged 19 commits into
trunkfrom
update/admin-scheme-colors

Conversation

@ciampo

@ciampo ciampo commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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 #a3b745 lime but is slightly darker than the current #646c3e, because legacy styles put white text on --wp-admin-theme-color and use it as text. On the sidebar, the ramp lightens it back to a lime (#9aaa4f).

Scheme Background seed Sidebar Primary Label
Modern #222524 → #121514 #1b1e1d → #070a09 #3858e9 black → white
Fresh #25292b → #121618 #1e2325 → #070b0d #007cba → #006daa black → white
Midnight #3d4042 → #111416 #373b3d → #06080a #cf4339 → #bf332b black → white
Ectoplasm #4f386e → #544769 #4a3269 → #523f6d #646c3e → #606e00 dark

The generated 05-scheme-tokens.css, the base-styles scheme colors, and the Storybook examples follow.

Limitations

  • Modern, Fresh, and Midnight sidebars become near-black and look alike.
  • Core's admin bar and menu keep their current colors until wordpress-develop is updated.

Testing Instructions

  1. In Users → Profile, set Admin Color Scheme to Modern.
  2. Open Appearance → Editor → Pages and make an unsaved change, for example by picking a style variation in Styles.
  3. Review 1 change… at the bottom of the sidebar has a white label, also on hover.
  4. Repeat for Fresh and Midnight.
  5. In Ectoplasm, the sidebar is purple and the button is lime with a dark label. Add Page is dark lime with a white label.

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

Before After
Modern before: dark gray sidebar, blue Review button with a black label Modern after: near-black sidebar, blue Review button with a white label

Fresh

Before After
Fresh before: dark gray sidebar, blue Review button with a black label Fresh after: near-black sidebar, blue Review button with a white label

Midnight

Before After
Midnight before: gray sidebar, light red Review button with a dark label Midnight after: near-black sidebar, red Review button with a white label

Ectoplasm

Before After
Ectoplasm before: purple sidebar, grayish olive Review button with a dark label, olive Add Page button with a light label Ectoplasm after: purple sidebar, lime Review button with a dark label, dark lime Add Page button with a white label
Review button on hover, all four schemes
Before After
Modern hover before: lighter blue fill with a black label Modern hover after: lighter blue fill with a white label
Fresh hover before: lighter blue fill with a black label Fresh hover after: blue fill with a white label
Midnight hover before: salmon fill with a dark label Midnight hover after: red fill with a white label
Ectoplasm hover before: pale olive fill with a dark label Ectoplasm hover after: light lime fill with a dark label

TODO / Follow-ups

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

ciampo and others added 2 commits November 30, 2026 15:19
…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>
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: +351 B (0%)

Total Size: 8.73 MB

📦 View Changed
Filename Size Change
build/modules/boot/index.min.js 55.1 kB +3 B (+0.01%)
build/modules/workflow/index.min.js 42.8 kB +4 B (+0.01%)
build/scripts/customize-widgets/index.min.js 22.9 kB +5 B (+0.02%)
build/scripts/edit-site/index.min.js 380 kB +1 B (0%)
build/scripts/edit-widgets/index.min.js 29.2 kB +2 B (+0.01%)
build/styles/base-styles/admin-schemes-rtl.css 1.86 kB +46 B (+2.54%)
build/styles/base-styles/admin-schemes-rtl.min.css 800 B +35 B (+4.58%) 🔍
build/styles/base-styles/admin-schemes.css 1.86 kB +46 B (+2.54%)
build/styles/base-styles/admin-schemes.min.css 800 B +35 B (+4.58%) 🔍
build/styles/block-directory/style-rtl.css 2.24 kB +1 B (+0.04%)
build/styles/block-directory/style-rtl.min.css 1.24 kB +4 B (+0.32%)
build/styles/block-directory/style.css 2.24 kB +1 B (+0.04%)
build/styles/block-directory/style.min.css 1.24 kB +4 B (+0.32%)
build/styles/block-editor/content-rtl.css 6.01 kB +3 B (+0.05%)
build/styles/block-editor/content-rtl.min.css 4.49 kB +4 B (+0.09%)
build/styles/block-editor/content.css 6.01 kB +3 B (+0.05%)
build/styles/block-editor/content.min.css 4.49 kB +5 B (+0.11%)
build/styles/block-editor/style-rtl.css 20.4 kB +5 B (+0.02%)
build/styles/block-editor/style-rtl.min.css 17.3 kB +5 B (+0.03%)
build/styles/block-editor/style.css 20.4 kB +4 B (+0.02%)
build/styles/block-editor/style.min.css 17.3 kB +5 B (+0.03%)
build/styles/block-library/common-rtl.css 2.97 kB +1 B (+0.03%)
build/styles/block-library/common-rtl.min.css 1.56 kB +4 B (+0.26%)
build/styles/block-library/common.css 3 kB +1 B (+0.03%)
build/styles/block-library/common.min.css 1.56 kB +6 B (+0.39%)
build/styles/block-library/style-rtl.css 23.1 kB +1 B (0%)
build/styles/block-library/style-rtl.min.css 19.6 kB +5 B (+0.03%)
build/styles/block-library/style.min.css 19.6 kB +5 B (+0.03%)
build/styles/commands/style-rtl.css 2.31 kB +1 B (+0.04%)
build/styles/commands/style-rtl.min.css 1.33 kB +4 B (+0.3%)
build/styles/commands/style.css 2.31 kB +2 B (+0.09%)
build/styles/commands/style.min.css 1.33 kB +4 B (+0.3%)
build/styles/customize-widgets/style-rtl.css 3.04 kB +1 B (+0.03%)
build/styles/customize-widgets/style-rtl.min.css 2.04 kB +5 B (+0.25%)
build/styles/customize-widgets/style.css 3.04 kB +2 B (+0.07%)
build/styles/customize-widgets/style.min.css 2.04 kB +5 B (+0.25%)
build/styles/edit-post/style-rtl.css 3.48 kB +3 B (+0.09%)
build/styles/edit-post/style-rtl.min.css 2.14 kB +4 B (+0.19%)
build/styles/edit-post/style.css 3.48 kB -1 B (-0.03%)
build/styles/edit-post/style.min.css 2.14 kB +4 B (+0.19%)
build/styles/edit-site/style-rtl.css 21.3 kB +5 B (+0.02%)
build/styles/edit-site/style-rtl.min.css 17.2 kB +4 B (+0.02%)
build/styles/edit-site/style.css 21.3 kB +6 B (+0.03%)
build/styles/edit-site/style.min.css 17.2 kB +5 B (+0.03%)
build/styles/edit-widgets/style-rtl.css 5.46 kB +3 B (+0.05%)
build/styles/edit-widgets/style-rtl.min.css 4.05 kB +4 B (+0.1%)
build/styles/edit-widgets/style.css 5.46 kB +4 B (+0.07%)
build/styles/edit-widgets/style.min.css 4.05 kB +4 B (+0.1%)
build/styles/editor/style-rtl.css 32.2 kB +2 B (+0.01%)
build/styles/editor/style-rtl.min.css 27.8 kB +6 B (+0.02%)
build/styles/editor/style.css 32.3 kB +1 B (0%)
build/styles/editor/style.min.css 27.8 kB +4 B (+0.01%)
build/styles/patterns/style-rtl.css 2.08 kB +2 B (+0.1%)
build/styles/patterns/style-rtl.min.css 1.12 kB +5 B (+0.45%)
build/styles/patterns/style.css 2.08 kB +2 B (+0.1%)
build/styles/patterns/style.min.css 1.12 kB +5 B (+0.45%)
build/styles/widgets/style-rtl.css 2.32 kB +2 B (+0.09%)
build/styles/widgets/style-rtl.min.css 1.33 kB +4 B (+0.3%)
build/styles/widgets/style.css 2.32 kB +1 B (+0.04%)
build/styles/widgets/style.min.css 1.34 kB +4 B (+0.3%)

9c3eb96 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 7df8e31 trunk % Change
timeToFirstByte 58.7 ms +9.28% -5.45% 63.35 ms +7.26% -4.1% -7.34%
largestContentfulPaint 92 ms +10.87% -4.35% 100 ms +4% -8% -8%
lcpMinusTtfb 36.4 ms +6.46% -16.35% 32.35 ms +22.72% -8.5% 12.52%
wpBeforeTemplate 30.41 ms +11.71% -4.87% 32.5 ms +12.65% -5.66% -6.43%
wpTemplate 23.83 ms +4.57% -6.38% 25.73 ms +2.8% -1.44% -7.38%
wpTotal 54.38 ms +9.21% -5.48% 58.98 ms +8.27% -4.34% -7.8%
wpMemoryUsage 7.75 MB +0% -0% 7.72 MB +0% -0% 0.45%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 7df8e31 trunk % Change
timeToFirstByte 48.4 ms +11.88% -4.34% 49.2 ms +2.54% -3.35% -1.63%
largestContentfulPaint 84 ms +11.9% -0% 84 ms +4.76% -0% 0%
lcpMinusTtfb 37.55 ms +4.13% -3.33% 36.75 ms +5.17% -2.72% 2.18%
wpBeforeTemplate 26.15 ms +16.48% -2.18% 26.49 ms +3.62% -1.36% -1.28%
wpTemplate 17.82 ms +10.27% -5.84% 18.27 ms +5.91% -2.74% -2.46%
wpTotal 45.02 ms +11.93% -4.78% 45.53 ms +3.01% -3.29% -1.12%
wpMemoryUsage 6.44 MB +0% -0% 6.41 MB +0% -0% 0.56%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 7df8e31 trunk % Change
mediaProcessingJpeg 422.36 ms +1.85% -1.87% 420.87 ms +1.29% -1.35% 0.35%
mediaProcessingAvif 6294.82 ms +0.49% -0.36% 6236.4 ms +0.3% -0.35% 0.94%
mediaProcessingJpegToAvif 4412.43 ms +0.43% -0.8% 4384.05 ms +0.09% -0.16% 0.65%

media-upload

Metric 7df8e31 trunk % Change
jpegUploadProcessing 2045.47 ms +1.65% -3.75% 2013.86 ms +1.4% -0.39% 1.57%
pngUploadProcessing 288.13 ms +5.74% -0.77% 293.45 ms +4.68% -1.88% -1.81%
largeJpegUploadProcessing 2008.54 ms +0.64% -0.64% 2021.11 ms +0.31% -1.65% -0.62%
multipleImageUploadProcessing 2112.95 ms +1.28% -0.43% 2180.17 ms +0.38% -1.59% -3.08%

post-editor

Metric 7df8e31 trunk % Change
serverResponse 332.63 ms +3.4% -9.13% 332.26 ms +3.64% -8.3% 0.11%
firstPaint 378.62 ms +13.41% -1.22% 352.83 ms +5.4% -18.08% 7.31%
domContentLoaded 679.4 ms +7.49% -1.72% 656.49 ms +2.66% -1.66% 3.49%
loaded 680.26 ms +7.48% -1.71% 657.33 ms +2.7% -1.66% 3.49%
firstContentfulPaint 383.22 ms +12.05% -1.16% 358.93 ms +5.11% -0.84% 6.77%
firstBlock 1809.11 ms +7.66% -0.89% 1764.27 ms +1.27% -0.41% 2.54%
type 16.7 ms +3.41% -8.8% 15.59 ms +6.61% -9.3% 7.12%
typeWithoutInspector 16.56 ms +8.57% -9.96% 16.16 ms +5.88% -11.08% 2.48%
typeWithTopToolbar 20.89 ms +3.4% -6.46% 19.96 ms +3.81% -5.71% 4.66%
typeContainer 7.33 ms +3.96% -6.96% 7.49 ms +2.94% -15.09% -2.14%
focus 95.59 ms +7.31% -5.43% 89.63 ms +6.63% -6.26% 6.65%
firstFocus 218.51 ms +0% -0% 216.26 ms +0% -0% 1.04%
selectAll 325.36 ms +7.02% -1.51% 316.03 ms +1.36% -1.26% 2.95%
undo 27.23 ms +6.5% -4.48% 27.22 ms +7.83% -6.69% 0.04%
listViewOpen 34.56 ms +8.39% -6.92% 32.58 ms +3.35% -7% 6.08%
inserterOpen 34.34 ms +2.07% -6.55% 35.94 ms +8.96% -6.07% -4.45%
inserterHover 9.65 ms +16.58% -3.83% 10.13 ms +3.95% -7.11% -4.74%
inserterSearch 6.96 ms +6.18% -6.9% 7.2 ms +4.31% -6.94% -3.33%
loadPatterns 538.34 ms +4.65% -4.02% 532.19 ms +0.53% -1.56% 1.16%
wpTotal 324.02 ms +3.31% -9.84% 323.55 ms +3.32% -8.49% 0.15%
wpMemoryUsage 14.80 MB +0% -0% 14.77 MB +0% -0% 0.25%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 7df8e31 trunk % Change
serverResponse 473.82 ms +1.1% -7.72% 473.38 ms +1.91% -8.43% 0.09%
firstPaint 461.11 ms +2.79% -4.16% 426.73 ms +11.85% -12.91% 8.06%
domContentLoaded 850.97 ms +4.18% -2.58% 834.81 ms +0.73% -0.82% 1.94%
loaded 851.86 ms +4.22% -2.57% 836.04 ms +0.7% -0.86% 1.89%
firstContentfulPaint 483.3 ms +8.42% -4.35% 469.87 ms +1.76% -1.94% 2.86%
firstBlock 2641.38 ms +3.58% -2.27% 2612.47 ms +0.88% -1.31% 1.11%
type 17.27 ms +6.08% -3.76% 17.35 ms +15.22% -7.38% -0.46%
navigate 121.57 ms +3.48% -5.77% 122.92 ms +2.73% -7.31% -1.1%
loadPatterns 1295.52 ms +11.9% -4.19% 1377.21 ms +6.43% -5.98% -5.93%
loadPages 960.83 ms +4.82% -0.97% 984.15 ms +1.8% -2.09% -2.37%
wpTotal 464.39 ms +1.13% -7.87% 463.93 ms +1.94% -8.61% 0.1%
wpMemoryUsage 12.84 MB +0% -0% 12.80 MB +0% -0% 0.28%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

9c3eb96 Run

🏁 Flaky tests

Some 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 /test/e2e/specs/editor/blocks/query.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 22
+ Received  +  1

  Array [
    Object {
-     "innerBlocks": Array [
-       Object {
-         "innerBlocks": Array [
-           Object {
-             "name": "core/post-title",
-           },
-           Object {
-             "name": "core/post-featured-image",
-           },
-           Object {
-             "name": "core/post-excerpt",
-           },
-           Object {
-             "name": "core/separator",
-           },
-           Object {
-             "name": "core/post-date",
-           },
-         ],
-         "name": "core/post-template",
-       },
-     ],
+     "innerBlocks": Array [],
      "name": "core/query",
    },
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/query.spec.js:226:42
two users concurrently move list items (RTC WebSocket) in /test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('role=toolbar[name="Block tools"i]').locator('role=button[name="Move up"i]')
    - locator resolved to <button id="_r_1l_" type="button" tabindex="-1" aria-label="Move up" data-toolbar-item="true" aria-describedby="block-editor-block-mover-button__description-0" class="components-button block-editor-block-mover-button is-up-button is-next-40px-default-size has-icon">…</button>
  - attempting click action
    - waiting for element to be visible, enabled and stable
  - element was detached from the DOM, retrying

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts:623:7
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts:602:3

9c3eb96 Run

@github-actions github-actions Bot added [Package] Base styles /packages/base-styles [Package] Theme /packages/theme [Package] Boot /packages/boot [Package] Admin UI /packages/admin-ui labels Nov 30, 2026
@ciampo ciampo added the [Type] Enhancement A suggestion for improvement. label Nov 30, 2026
@ciampo ciampo self-assigned this Nov 30, 2026
`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.
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.
@ciampo
ciampo marked this pull request as ready for review November 30, 2026 15:51
@ciampo
ciampo requested a review from spacedmonkey as a code owner November 30, 2026 15:51
@ciampo
ciampo requested a review from a team as a code owner November 30, 2026 15:51
@ciampo
ciampo requested review from a team, Mamaduka, andrewserong and fushar November 30, 2026 15:51
@github-actions
github-actions Bot requested a review from aduth November 30, 2026 15:52
@ciampo
ciampo requested a review from ramonjd November 30, 2026 15:52

@ramonjd ramonjd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 before-ectoplasm before-ectoplasm-hover after-ectoplasm after-ectoplasm-hover
modern before-modern before-modern-hover after-modern after-modern-hover
fresh before-fresh before-fresh-hover after-fresh after-fresh-hover
midnight before-midnight before-midnight-hover after-midnight after-midnight-hover

@ciampo
ciampo merged commit 9917665 into trunk Dec 1, 2026
114 of 115 checks passed
@ciampo
ciampo deleted the update/admin-scheme-colors branch December 1, 2026 11:34
@github-actions github-actions Bot added this to the Gutenberg 24.6 milestone Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Admin UI /packages/admin-ui [Package] Base styles /packages/base-styles [Package] Boot /packages/boot [Package] Theme /packages/theme [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants