Skip to content

Theme: Add a strong neutral content color for headings - #87424

Closed
ciampo wants to merge 2 commits into
codex/theme-anchored-foreground-scalefrom
extract/strong-neutral-content-82294
Closed

ciampo wants to merge 2 commits into
codex/theme-anchored-foreground-scalefrom
extract/strong-neutral-content-82294

Conversation

@ciampo

@ciampo ciampo commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

The strong heading token uses the new fifth foreground step. The token and its heading and overlay-title consumers are now included in #82294.

What?

Give headings and overlay titles a stronger neutral color than body text. In the default light theme, headings use #141414 and body text uses #464646.

Why?

The ramp change makes resting text softer. Headings need a separate content token so they can retain their emphasis without borrowing an interaction color.

How?

Add --wpds-color-foreground-content-neutral-strong and check it against all three neutral surfaces. Use it for Text heading variants, overlay titles, static panel headings, and editor sidebar headings.

Testing Instructions

Open Design System → Theme → Foreground Emphasis → Comparison. Compare the heading with the body text below it in the light, dark, and Ectoplasm samples. Open a Dialog or Popover and check its title against the description.

Testing Instructions for Keyboard

Tab to the Dialog trigger, press Enter, then Escape. Check the title while the dialog is open and that focus returns to the trigger.

Screenshots

Ramp alone Ramp with heading emphasis
Heading and body text on the rebased color ramp branch Stronger heading with the same body and supporting text

Use of AI Tools

OpenAI Codex extracted the changes from #82294, ran the checks, and drafted this description.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🏷️ Labels

This pull request needs exactly one label indicating its type, and has 0.

  • Required: any label starting with [Type].
  • Found: none.

Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you.

📦 Bundle size

Size Change: +951 B (+0.01%)

Total Size: 8.72 MB

📦 View Changed
Filename Size Change
build/modules/boot/index.min.js 51.8 kB +33 B (+0.06%)
build/modules/core-fields/attachment.min.js 44.3 kB +33 B (+0.07%)
build/modules/core-fields/page.min.js 7.2 kB +36 B (+0.5%)
build/modules/core-fields/post_type_supports.min.js 82.1 kB +33 B (+0.04%)
build/modules/workflow/index.min.js 42.3 kB +35 B (+0.08%)
build/scripts/block-directory/index.min.js 42.6 kB +30 B (+0.07%)
build/scripts/block-editor/index.min.js 561 kB +34 B (+0.01%)
build/scripts/block-library/index.min.js 429 kB +34 B (+0.01%)
build/scripts/components/index.min.js 356 kB +41 B (+0.01%)
build/scripts/customize-widgets/index.min.js 22.9 kB +28 B (+0.12%)
build/scripts/edit-site/index.min.js 384 kB +36 B (+0.01%)
build/scripts/edit-widgets/index.min.js 29.2 kB +73 B (+0.25%)
build/scripts/editor/index.min.js 575 kB +26 B (0%)
build/scripts/format-library/index.min.js 73.4 kB +27 B (+0.04%)
build/scripts/media-utils/index.min.js 238 kB +26 B (+0.01%)
build/scripts/notices/index.min.js 48 kB +44 B (+0.09%)
build/scripts/patterns/index.min.js 12.6 kB +42 B (+0.33%)
build/scripts/theme/index.min.js 34.3 kB +23 B (+0.07%)
build/scripts/widgets/index.min.js 65 kB +37 B (+0.06%)
build/styles/block-editor/style-rtl.css 20.3 kB +24 B (+0.12%)
build/styles/block-editor/style-rtl.min.css 17.2 kB +24 B (+0.14%)
build/styles/block-editor/style.css 20.4 kB +25 B (+0.12%)
build/styles/block-editor/style.min.css 17.2 kB +24 B (+0.14%)
build/styles/components/style-rtl.css 18.6 kB +8 B (+0.04%)
build/styles/components/style-rtl.min.css 15.7 kB +9 B (+0.06%)
build/styles/components/style.css 18.6 kB +7 B (+0.04%)
build/styles/components/style.min.css 15.7 kB +9 B (+0.06%)
build/styles/edit-widgets/style-rtl.css 5.48 kB +20 B (+0.37%)
build/styles/edit-widgets/style-rtl.min.css 4.06 kB +18 B (+0.44%)
build/styles/edit-widgets/style.css 5.47 kB +18 B (+0.33%)
build/styles/edit-widgets/style.min.css 4.06 kB +17 B (+0.42%)
build/styles/editor/style-rtl.css 32.3 kB +6 B (+0.02%)
build/styles/editor/style-rtl.min.css 27.9 kB +7 B (+0.03%)
build/styles/editor/style.css 32.4 kB +6 B (+0.02%)
build/styles/editor/style.min.css 27.9 kB +8 B (+0.03%)
build/styles/theme/design-tokens-rtl.css 3.36 kB +17 B (+0.51%)
build/styles/theme/design-tokens-rtl.min.css 1.61 kB +8 B (+0.5%)
build/styles/theme/design-tokens.css 3.36 kB +17 B (+0.51%)
build/styles/theme/design-tokens.min.css 1.61 kB +8 B (+0.5%)

6cdf2f4 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 6582ae7 codex/theme-anchored-foreground-scale % Change
timeToFirstByte 48.75 ms +3.38% -3.28% 50.15 ms +6.18% -2.49% -2.79%
largestContentfulPaint 82 ms +7.32% -7.32% 80 ms +10% -5% 2.5%
lcpMinusTtfb 30.85 ms +16.69% -9.4% 29.45 ms +9% -5.77% 4.75%
wpBeforeTemplate 24.2 ms +3.43% -2.27% 24.95 ms +4.17% -2.48% -3.01%
wpTemplate 20.66 ms +2.86% -6.73% 21.06 ms +7.64% -4.61% -1.9%
wpTotal 44.96 ms +2.98% -3.09% 46.2 ms +4.94% -2.81% -2.68%
wpMemoryUsage 7.75 MB +0% -0% 7.75 MB +0% -0% 0.02%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 6582ae7 codex/theme-anchored-foreground-scale % Change
timeToFirstByte 41.25 ms +5.58% -3.52% 40.25 ms +2.73% -2.36% 2.48%
largestContentfulPaint 76 ms +0% -5.26% 76 ms +5.26% -5.26% 0%
lcpMinusTtfb 32.95 ms +7.13% -1.97% 33.85 ms +14.77% -2.66% -2.66%
wpBeforeTemplate 21.49 ms +10.05% -0.93% 21.51 ms +1.3% -1.91% -0.09%
wpTemplate 15.76 ms +5.46% -3.05% 15.04 ms +4.06% -2.59% 4.79%
wpTotal 38.01 ms +6.26% -3.21% 36.92 ms +2.57% -2.9% 2.95%
wpMemoryUsage 6.44 MB +0% -0% 6.44 MB +0% -0% 0.03%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 6582ae7 codex/theme-anchored-foreground-scale % Change
mediaProcessingJpeg 395.29 ms +0.47% -0.99% 395.19 ms +0.66% -1.36% 0.03%
mediaProcessingAvif 5698.69 ms +0.1% -0.29% 5782.28 ms +0.15% -0.36% -1.45%
mediaProcessingJpegToAvif 3892 ms +0.29% -0.01% 3932.45 ms +0.18% -0.4% -1.03%

media-upload

Metric 6582ae7 codex/theme-anchored-foreground-scale % Change
jpegUploadProcessing 1513.59 ms +33.14% -2.69% 1496.71 ms +0.61% -0.79% 1.13%
pngUploadProcessing 258.85 ms +1.65% -1.73% 259.74 ms +1.51% -1.76% -0.34%
largeJpegUploadProcessing 1477.74 ms +0.58% -0.51% 1501.57 ms +0.45% -0.76% -1.59%
multipleImageUploadProcessing 1649.58 ms +6.81% -1.37% 1660.65 ms +6.99% -0.47% -0.67%

post-editor

Metric 6582ae7 codex/theme-anchored-foreground-scale % Change
serverResponse 460.56 ms +7.28% -5.65% 488.6 ms +1.08% -9.28% -5.74%
firstPaint 397.11 ms +22.83% -4.49% 402.58 ms +5.26% -4.73% -1.36%
domContentLoaded 814.56 ms +6.01% -1.35% 838.22 ms +0.74% -0.53% -2.82%
loaded 815.65 ms +6.01% -1.38% 839.35 ms +0.71% -0.54% -2.82%
firstContentfulPaint 460 ms +12.04% -3.64% 470.37 ms +1.96% -2.23% -2.2%
firstBlock 2225.98 ms +2.75% -1.91% 2271.83 ms +0.44% -0.48% -2.02%
type 17.28 ms +7.06% -3.7% 20.84 ms +1.49% -11.85% -17.08%
typeWithoutInspector 17.44 ms +5.05% -11.58% 19.14 ms +1.78% -14.37% -8.88%
typeWithTopToolbar 22.58 ms +9.21% -7.93% 23.31 ms +10.77% -1.2% -3.13%
typeContainer 8.14 ms +11.3% -7.86% 8.84 ms +4.19% -9.28% -7.92%
focus 111.32 ms +4.84% -5.06% 117.78 ms +2.7% -7.12% -5.48%
firstFocus 281.36 ms +0% -0% 274.57 ms +0% -0% 2.47%
selectAll 375.03 ms +4.42% -0.47% 394.84 ms +6.43% -1.22% -5.02%
undo 29.84 ms +6.7% -8.61% 30.3 ms +9.11% -8.71% -1.52%
listViewOpen 40.88 ms +4.4% -9.78% 40.49 ms +15.11% -5.41% 0.96%
inserterOpen 41.6 ms +10.96% -12.31% 41.47 ms +14.4% -8.68% 0.31%
inserterHover 11.25 ms +14.84% -9.16% 11.47 ms +11.68% -5.58% -1.92%
inserterSearch 8.61 ms +8.25% -1.74% 8.46 ms +10.17% -9.69% 1.77%
loadPatterns 660.61 ms +2.44% -2.43% 655.5 ms +3.33% -2.01% 0.78%
wpTotal 450.72 ms +7.43% -5.83% 478.65 ms +1.17% -9.45% -5.84%
wpMemoryUsage 14.81 MB +0% -0% 14.81 MB +0% -0% 0.01%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 6582ae7 codex/theme-anchored-foreground-scale % Change
serverResponse 314.15 ms +1.93% -10.86% 312.06 ms +0.85% -9.51% 0.67%
firstPaint 367.82 ms +2.33% -15.16% 336 ms +12.57% -10.57% 9.47%
domContentLoaded 649.94 ms +2.05% -0.57% 663.58 ms +1.44% -1.96% -2.06%
loaded 650.67 ms +2.05% -0.57% 664.48 ms +1.42% -1.98% -2.08%
firstContentfulPaint 371.26 ms +2.55% -1.82% 376.8 ms +6.69% -3.12% -1.47%
firstBlock 2055.22 ms +5.53% -1.66% 2040.01 ms +1.26% -0.57% 0.75%
type 14.63 ms +5.13% -6.22% 14.72 ms +6.32% -9.78% -0.61%
navigate 90.18 ms +9.55% -4.73% 98.63 ms +8.44% -6.8% -8.57%
loadPatterns 1097.41 ms +3.84% -8.79% 1109.19 ms +4.87% -1.87% -1.06%
loadPages 995.56 ms +2.46% -2.67% 984.05 ms +1.76% -6.64% 1.17%
wpTotal 305.8 ms +1.94% -11.12% 303.66 ms +0.79% -9.78% 0.7%
wpMemoryUsage 12.84 MB +0% -0% 12.84 MB +0% -0% 0.01%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

6cdf2f4 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

6cdf2f4 Run

@github-actions github-actions Bot added [Package] Components /packages/components [Package] Block editor /packages/block-editor [Package] Interface /packages/interface [Package] Base styles /packages/base-styles [Package] Theme /packages/theme [Package] UI /packages/ui labels Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Base styles /packages/base-styles [Package] Block editor /packages/block-editor [Package] Components /packages/components [Package] Interface /packages/interface [Package] Theme /packages/theme [Package] UI /packages/ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant