Skip to content

Administration: Remove unused font-weight tokens#12524

Closed
ciampo wants to merge 1 commit into
WordPress:trunkfrom
ciampo:remove/unused-font-weight-tokens
Closed

Administration: Remove unused font-weight tokens#12524
ciampo wants to merge 1 commit into
WordPress:trunkfrom
ciampo:remove/unused-font-weight-tokens

Conversation

@ciampo

@ciampo ciampo commented Jul 14, 2026

Copy link
Copy Markdown

Related: WordPress/gutenberg#80093

Removes the unused $font-weight-regular and $font-weight-medium Sass variables from the admin color scheme tokens. Neither variable has a consumer, so this does not change generated CSS or runtime styling.

Trac ticket: https://core.trac.wordpress.org/ticket/65629

Testing Instructions

  1. Run npm run grunt -- colors --dev.
  2. Confirm the admin color schemes compile successfully.
  3. Confirm no generated CSS files change.

Use of AI Tools

AI assistance: Yes
Tool(s): OpenAI Codex
Model(s): GPT-5
Used for: Repository research, implementation, verification, and PR preparation.


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.

@ciampo
ciampo marked this pull request as ready for review July 14, 2026 13:54
@ciampo ciampo self-assigned this Jul 14, 2026
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props mciampini.

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

@aduth aduth 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.

I am not an active committer, but this LGTM and follows my own findings shared previously that these are currently unused and inconsistent with the font weights being introduced to Gutenberg in WordPress 7.1, and that new usage should ideally use the new CSS properties instead.

@aduth
aduth requested a review from fabiankaegy July 14, 2026 18:07

@tyxla tyxla 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.

LGTM 👍

pento pushed a commit that referenced this pull request Jul 15, 2026
Remove the unused `$font-weight-regular` and `$font-weight-medium` Sass
variables from the admin color scheme tokens. Neither variable has a
consumer, so this does not change any generated CSS or runtime styling.

These tokens are also inconsistent with the font weights being introduced
to the Gutenberg project in WordPress 7.1, where new usage should rely on
the new CSS custom properties instead.

Developed in #12524.

Props ciampo, aduth, tyxla.
Fixes #65629.

git-svn-id: https://develop.svn.wordpress.org/trunk@62755 602fd350-edb4-49c9-b593-d223f7449a82
@github-actions

Copy link
Copy Markdown

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 62755
GitHub commit: cd0e098

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions Bot closed this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants