Skip to content

Admin UI: Restore the Sunrise and Blue sidebar colors - #87420

Merged
ciampo merged 6 commits into
trunkfrom
t3/first-followup-improvement
Nov 30, 2026
Merged

ciampo merged 6 commits into
trunkfrom
t3/first-followup-improvement

Conversation

@ciampo

@ciampo ciampo commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #86614. This addresses its first follow-up after the saturation change in #87175.

What?

Change the Sunrise and Blue background seeds in getAdminThemeColors so that the site editor sidebar matches Core's admin colors again.

Why?

Since #87175 keeps background saturation, the derived sidebar color has moved away from the $base-color of the Core scheme in WordPress 7.1 and later. Sunrise shows #99171c instead of #8a312d. Blue shows #11507e instead of #245278. The difference is visible where the sidebar meets the admin bar.

How?

The sidebar uses --wpds-color-background-surface-neutral-weak, which ThemeProvider derives from the background seed. The new seeds are #933330 (Sunrise) and #24567e (Blue). They produce #892e2b and #215177, which are within ΔE2000 0.7 of Core. The ramp rounds its output, and a search of nearby seeds found no exact match. A browser test in @wordpress/boot reads the seeds through getAdminThemeColors and checks the sidebar color against Core for both schemes.

The seed also sets the other neutral colors in the sidebar, such as its text and strokes. They change with the background. White sidebar text keeps a contrast of about 8.4:1. On trunk, the primary ramps do not change. With #86614 applied, a few brand steps move by one hex level. The Sunrise fill changes from #e79858 to #e69858, and the Blue fill changes from #76afe0 to #77afe0.

The change applies to the site editor and the extensible site editor, because both read the scheme from getAdminThemeColors. Single-page screens of the extensible admin, such as Fonts, also show this color in the frame around their content. The Storybook data for these schemes uses the new seeds.

Testing Instructions

Use WordPress 7.1 or later. WordPress 7.0 still uses the older Core colors for these schemes (#cf4944 and #52accc). On 7.0, the sidebar does not match the admin bar with or without this PR.

  1. In Settings → Gutenberg, enable the Extensible Site Editor experiment.
  2. In Users → Profile, choose the Sunrise admin color scheme.
  3. Open wp-admin/admin.php?page=site-editor-v2. Compare the sidebar with the admin bar above it. On trunk, the sidebar is a brighter red (#99171c). With this PR, it is close to the admin bar (#892e2b against #8a312d).
  4. Open wp-admin/site-editor.php and compare the sidebar in the same way.
  5. Repeat with Blue. On trunk, the sidebar is #11507e. With this PR, it is #215177 against #245278.

Testing Instructions for Keyboard

In each scheme, press Tab from Dashboard to a navigation item. Check that its focus ring is visible against the sidebar.

Screenshots or screencast

The extensible site editor at 1280×720. The admin bar at the top uses the Core scheme color. Before is trunk (d3f8e19). After is this PR.

Sunrise

Before After
Sunrise: the sidebar is a brighter red than the admin bar above it Sunrise: the sidebar matches the admin bar above it

Blue

Before After
Blue: the sidebar is a more saturated blue than the admin bar above it Blue: the sidebar matches the admin bar above it
Sidebar distance from Core

ΔE2000 between the derived sidebar color and the Core $base-color. A lower value means a closer match.

Scheme Before #87175 Trunk This PR
Sunrise 0.66 5.16 0.67
Blue 0.81 2.02 0.47

#87175 did not change the sidebar background of the other schemes, and this PR does not change those schemes.

Alternative: change the Core colors

Core could instead adopt the colors that Gutenberg now derives, as an art direction decision. Core already changed these colors once to match the ramp. r62454 (Core ticket #65382) set Sunrise to #8a312d and Blue to #245278. #87175 then changed the ramp.

This PR keeps Core as the reference for these reasons:

  • $base-color also sets the admin menu and admin bar on every classic admin screen.
  • A Core change ships only with a future WordPress release. Sites on older WordPress versions that run the Gutenberg plugin would keep the mismatch.
  • If Core follows the ramp, each later ramp change needs another Core change.

Contrast does not favor either option. White text measures about 8.2:1 to 8.5:1 on all of these colors.

Use of AI Tools

Claude Code implemented the change, measured the seeds against Core's colors, and captured the screenshots. GPT-6.2 Astra reviewed the changes and updated the browser test.

Since the background ramp preserves saturation, the Sunrise and Blue
background seeds derive sidebar colors that drift from Core's
`$base-color` (#99171c instead of #8a312d, #11507e instead of #245278).
New seeds bring both back within a visually indistinguishable distance
and leave the primary ramps unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added [Package] Theme /packages/theme [Package] Admin UI /packages/admin-ui labels Nov 25, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 25, 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: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: jasmussen <joen@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: 0 B

Total Size: 8.72 MB

📦 View Changed
Filename Size Change
build/scripts/customize-widgets/index.min.js 22.9 kB +1 B (0%)
build/scripts/edit-site/index.min.js 383 kB -1 B (0%)

d8f2f19 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 0c10edc trunk % Change
timeToFirstByte 62.7 ms +6.94% -3.19% 60.6 ms +6.44% -7.34% 3.47%
largestContentfulPaint 96 ms +8.33% -4.17% 94 ms +6.38% -4.26% 2.13%
lcpMinusTtfb 31.65 ms +16.59% -3.63% 32.1 ms +24.3% -9.66% -1.4%
wpBeforeTemplate 31.77 ms +14.54% -1.98% 31.22 ms +5.51% -4.39% 1.76%
wpTemplate 25.73 ms +4.86% -2.41% 24.69 ms +7.86% -9.11% 4.21%
wpTotal 58.55 ms +7.65% -3.6% 56.64 ms +6.06% -7.61% 3.37%
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 0c10edc trunk % Change
timeToFirstByte 54.65 ms +1.65% -6.04% 49.6 ms +2.82% -6.15% 10.18%
largestContentfulPaint 96 ms +0% -4.17% 84 ms +0% -2.38% 14.29%
lcpMinusTtfb 40.6 ms +3.33% -6.4% 34.35 ms +4.22% -3.2% 18.2%
wpBeforeTemplate 29.8 ms +7.65% -5.07% 27.3 ms +5.79% -2.56% 9.16%
wpTemplate 19.82 ms +7.72% -3.63% 17.18 ms +6.23% -1.98% 15.37%
wpTotal 51.08 ms +1.72% -6.15% 45.64 ms +4.23% -4.8% 11.92%
wpMemoryUsage 6.44 MB +0% -0% 6.41 MB +0% -0% 0.56%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 0c10edc trunk % Change
mediaProcessingJpeg 406.33 ms +0.61% -0.55% 404.82 ms +0.29% -0.64% 0.37%
mediaProcessingAvif 6196.53 ms +0.69% -0.22% 6208.21 ms +0.2% -0.55% -0.19%
mediaProcessingJpegToAvif 4278.13 ms +0.18% -0.3% 4267.58 ms +0.48% -0.72% 0.25%

media-upload

Metric 0c10edc trunk % Change
jpegUploadProcessing 1777.84 ms +15.46% -13.67% 1993.08 ms +0.55% -24.91% -10.8%
pngUploadProcessing 283.41 ms +2.87% -1.83% 273.64 ms +1.3% -4.42% 3.57%
largeJpegUploadProcessing 1990.39 ms +0.38% -0.34% 1970.81 ms +1.07% -23.08% 0.99%
multipleImageUploadProcessing 2128.49 ms +0.95% -1.13% 2077.82 ms +2.21% -0.48% 2.44%

post-editor

Metric 0c10edc trunk % Change
serverResponse 329.74 ms +2.29% -2.28% 324.17 ms +2.13% -10.08% 1.72%
firstPaint 342.11 ms +4.53% -5.58% 314.95 ms +8.38% -3.76% 8.62%
domContentLoaded 654.66 ms +2.94% -1.75% 644.83 ms +2.73% -0.91% 1.52%
loaded 655.57 ms +2.93% -1.74% 645.76 ms +2.7% -0.91% 1.52%
firstContentfulPaint 377.01 ms +2.58% -4.33% 367.61 ms +4.55% -2.09% 2.56%
firstBlock 1765.29 ms +3.37% -1.57% 1739.03 ms +2.05% -0.92% 1.51%
type 15.25 ms +5.9% -10.49% 15.04 ms +4.99% -5.52% 1.4%
typeWithoutInspector 15.55 ms +5.14% -13.95% 15.6 ms +2.37% -14.29% -0.32%
typeWithTopToolbar 20.02 ms +5.09% -4% 18.66 ms +7.66% -6.81% 7.29%
typeContainer 6.8 ms +8.24% -14.85% 6.8 ms +8.24% -8.24% 0%
focus 88.81 ms +5.65% -5.82% 85.83 ms +4.96% -3.6% 3.47%
firstFocus 205.22 ms +0% -0% 212.75 ms +0% -0% -3.54%
selectAll 314.65 ms +1.93% -2.51% 301.16 ms +1.66% -0.09% 4.48%
undo 25.19 ms +3.73% -4.21% 24.55 ms +7.17% -3.22% 2.61%
listViewOpen 30.02 ms +3.9% -1.67% 29.98 ms +6.8% -5.54% 0.13%
inserterOpen 34.12 ms +10.67% -2.49% 33.43 ms +9% -14.15% 2.06%
inserterHover 9.43 ms +9.97% -7.53% 9.63 ms +7.37% -4.67% -2.08%
inserterSearch 6.64 ms +4.22% -1.81% 6.94 ms +8.93% -5.91% -4.32%
loadPatterns 503.15 ms +2.61% -1.6% 507.85 ms +1.05% -2.05% -0.93%
wpTotal 321.04 ms +2.04% -2.28% 315.59 ms +2.17% -10.52% 1.73%
wpMemoryUsage 14.81 MB +0% -0% 14.76 MB +0% -0% 0.33%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 0c10edc trunk % Change
serverResponse 311.94 ms +0.72% -9.75% 312.76 ms +0.34% -10.06% -0.26%
firstPaint 334.87 ms +7.81% -5.17% 345.06 ms +8% -9.71% -2.95%
domContentLoaded 655.65 ms +1.86% -1.13% 656.18 ms +1.77% -1.27% -0.08%
loaded 656.37 ms +1.86% -1.13% 656.94 ms +1.76% -1.28% -0.09%
firstContentfulPaint 366.42 ms +4.72% -1.48% 365.33 ms +2.7% -0.93% 0.3%
firstBlock 2017.03 ms +4.01% -0.49% 2006.27 ms +1.25% -1.65% 0.54%
type 14.32 ms +5.8% -9.22% 14.08 ms +4.76% -5.04% 1.7%
navigate 85.39 ms +9.56% -1.91% 95.2 ms +7.07% -16.12% -10.3%
loadPatterns 1049.59 ms +6.19% -18.25% 1027.59 ms +6.3% -11.44% 2.14%
loadPages 990.74 ms +0.96% -2.16% 1007.49 ms +3.06% -2.92% -1.66%
wpTotal 303.63 ms +0.72% -10.03% 304.47 ms +0.35% -10.34% -0.28%
wpMemoryUsage 12.84 MB +0% -0% 12.80 MB +0% -0% 0.28%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

d8f2f19 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.

As a user I want to be able to add multiple close buttons so that users can close the overlay from different positions in /test/e2e/specs/site-editor/navigation-overlay-template-part.spec.js, passed after 1 failed attempt.
Error: expect(locator).toHaveCount(expected) failed

Locator:  getByRole('button', { name: 'Close' })
Expected: 2
Received: 1
Timeout:  5000ms

Call log:
  - Expect "toHaveCount" getByRole('button', { name: 'Close' }) with timeout 5000ms
  - waiting for getByRole('button', { name: 'Close' })
    14 × locator resolved to 1 element
       - unexpected value "1"

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/navigation-overlay-template-part.spec.js:228:33
should give the image its context menu while selected @WebKit @Firefox in /test/e2e/specs/editor/blocks/image.spec.js, passed after 1 failed attempt.
Test timeout of 100000ms exceeded.
three users concurrently edit a large post with diverse blocks in /test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts, passed after 1 failed attempt.
TimeoutError: locator.waitFor: Timeout 17500ms exceeded.
Call log:
  - waiting for getByRole('button', { name: /Collaborators list/ }) to be visible

    at map (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/fixtures/collaboration-utils.ts:193:7)
    at CollaborationUtils.waitForMutualDiscovery (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/fixtures/collaboration-utils.ts:188:10)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts:416:28

d8f2f19 Run

@ciampo ciampo self-assigned this Nov 25, 2026
@ciampo ciampo added the [Type] Enhancement A suggestion for improvement. label Nov 25, 2026
@ciampo

ciampo commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

The other possible approach is to tweak the Code (ie wp-develop) side of things to match the new Gutenberg generated colors, I guess that's more of an art direction decision.

If we like that approach, we'd need to understand if it still makes sense to land this PR anyway to prevent that little color difference between backgrounds

cc @fushar @WordPress/gutenberg-design

@ciampo
ciampo marked this pull request as ready for review November 25, 2026 22:02
@ciampo
ciampo requested a review from a team as a code owner November 25, 2026 22:02
@github-actions
github-actions Bot requested a review from aduth November 25, 2026 22:03
ciampo and others added 4 commits November 25, 2026 23:07
Move the sidebar color check from the theme ramp tests, which supplied
their own seeds, to a browser test that reads the seeds from
getAdminThemeColors. Restore the original Blue rounding fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Render the layout class in the sidebar color test so it exercises the
production stylesheet, note that the Core colors are those of WordPress
7.1, and label the former Blue rounding fixture.

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 added the [Package] Boot /packages/boot label Nov 25, 2026
@jameskoster

Copy link
Copy Markdown
Contributor

This seems the less impactful approach which suggests it's the right one to me. The core admin themes could use an overhaul once wp-admin has fully adopted the DS tokens.

@ciampo

ciampo commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

I agree, I propose we:

  • merge this PR to close the gap ASAP;
  • continue iterating on theme color algos (such as Theme: Generate perceptually balanced color ramps #82294 , and I have a few more improvements in mind)
  • continue to close the gap like we're doing in this PR while doing so;
  • when the changes have settled, update Core.

The alternative, more complex but also "correct" approach would be to eventually consume WPDS tokens in Core, but we don't yet have a straight path there, I believe.

@jasmussen

Copy link
Copy Markdown
Contributor

I don't have a strong opinion on how we do in the interim, but I see the destination as one where we have a single unifid colour token system that is applied to editor and admin, one that allows you to set an accent colour, light or dark mode, and add some customisation into the mix. Arguably the theme provider already does this, so a first step is to expand its usage to the admin itself.

But notably, such a future revisits all the existing themes as far as how they are made, so rather than being bespoke stylesheets that override, are simply value changes instead. All that should be possible, perhaps with the only question being whether the greyscale can be tinted. Everything in between here is temporary, IMO.

@ciampo

ciampo commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

I'll go ahead and merge, since there is consensus for this "stopgap" PR to land quickly.

@ciampo
ciampo merged commit 550d7c6 into trunk Nov 30, 2026
87 of 88 checks passed
@ciampo
ciampo deleted the t3/first-followup-improvement branch November 30, 2026 13:42
@github-actions github-actions Bot added this to the Gutenberg 24.6 milestone Nov 30, 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] 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.

3 participants