From bcfb56dbc0db0c58948222c53e2d897008984a0f Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 27 Nov 2026 01:55:35 +0900 Subject: [PATCH 1/4] Replace `$default-font` with the font family body token Swap call sites of the `$default-font` Sass variable from `@wordpress/base-styles` for `var(--wpds-typography-font-family-body)`, and extend the Stylelint rule for the font family variables to reject `$default-font` too. The variable definition stays unchanged until its deprecation. --- packages/base-styles/CHANGELOG.md | 1 + packages/base-styles/_mixins.scss | 2 +- .../src/components/block-draggable/style.scss | 2 +- .../src/components/block-list/content.scss | 4 ++-- .../block-editor/src/components/inserter/style.scss | 2 +- .../src/components/warning/content.scss | 4 ++-- .../src/components/writing-flow/style.scss | 2 +- packages/block-library/src/more/editor.scss | 2 +- packages/block-library/src/navigation/editor.scss | 4 ++-- packages/block-library/src/nextpage/editor.scss | 2 +- packages/components/CHANGELOG.md | 1 + packages/components/src/drop-zone/style.scss | 2 +- packages/components/src/dropdown-menu/style.scss | 2 +- packages/components/src/placeholder/style.scss | 4 ++-- packages/components/src/radio-control/style.scss | 2 +- .../resizable-box/resize-tooltip/style.module.scss | 2 +- packages/components/src/snackbar/style.scss | 2 +- .../src/toolbar/toolbar-button/style.scss | 4 +--- packages/components/src/tooltip/style.scss | 2 +- .../src/components/welcome-guide/style.scss | 2 +- .../src/components/welcome-guide/style.scss | 2 +- .../edit-widgets/src/blocks/widget-area/editor.scss | 2 +- .../src/components/welcome-guide/style.scss | 2 +- .../widget-areas-block-editor-content/style.scss | 6 ++---- .../src/components/global-styles-sidebar/style.scss | 2 +- .../editor/src/components/visual-editor/style.scss | 2 +- .../widgets/src/blocks/legacy-widget/editor.scss | 4 ++-- .../widgets/src/blocks/widget-group/editor.scss | 3 +-- storybook/global-basic.scss | 4 +--- storybook/stories/playground/fullpage/reset.scss | 3 +-- tools/stylelint/config.js | 13 ++++++++----- 31 files changed, 44 insertions(+), 47 deletions(-) diff --git a/packages/base-styles/CHANGELOG.md b/packages/base-styles/CHANGELOG.md index c8171cb9860c07..0dfdac5449381e 100644 --- a/packages/base-styles/CHANGELOG.md +++ b/packages/base-styles/CHANGELOG.md @@ -4,6 +4,7 @@ ### Enhancements +- The `input-control` mixin now uses the `--wpds-typography-font-family-body` design token for its font family. - The `input-control` and `editor-input-reset` mixins now use the `--wpds-typography-font-size-md` design token for their font size ([#86961](https://github.com/WordPress/gutenberg/pull/86961)). ## 15.1.0 (2026-11-18) diff --git a/packages/base-styles/_mixins.scss b/packages/base-styles/_mixins.scss index 4876c5d0199073..0e30f27fa06e3a 100644 --- a/packages/base-styles/_mixins.scss +++ b/packages/base-styles/_mixins.scss @@ -286,7 +286,7 @@ } @mixin input-control() { - font-family: variables.$default-font; + font-family: wpds.var("--wpds-typography-font-family-body"); padding: 6px 8px; /* Fonts smaller than 16px causes mobile safari to zoom. */ font-size: variables.$mobile-text-min-font-size; diff --git a/packages/block-editor/src/components/block-draggable/style.scss b/packages/block-editor/src/components/block-draggable/style.scss index 39f85f416b0e2e..5638bd3f7d59ad 100644 --- a/packages/block-editor/src/components/block-draggable/style.scss +++ b/packages/block-editor/src/components/block-draggable/style.scss @@ -45,7 +45,7 @@ } .components-flex__item { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); } } diff --git a/packages/block-editor/src/components/block-list/content.scss b/packages/block-editor/src/components/block-list/content.scss index 74dc116b496a95..f951118711d28a 100644 --- a/packages/block-editor/src/components/block-list/content.scss +++ b/packages/block-editor/src/components/block-list/content.scss @@ -402,7 +402,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection="true"] .b justify-content: center; overflow: hidden; font-size: var(--wpds-typography-font-size-md); - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); color: $black; font-weight: 400; @@ -467,7 +467,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection="true"] .b border-radius: $grid-unit-30 * 0.5; background: var(--wp-admin-theme-color); color: $white; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: 12px; font-weight: 500; } diff --git a/packages/block-editor/src/components/inserter/style.scss b/packages/block-editor/src/components/inserter/style.scss index b68f3e81cf0e33..80767b2a864730 100644 --- a/packages/block-editor/src/components/inserter/style.scss +++ b/packages/block-editor/src/components/inserter/style.scss @@ -21,7 +21,7 @@ $block-inserter-tabs-height: 44px; background: none; border: none; padding: 0; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); line-height: 0; diff --git a/packages/block-editor/src/components/warning/content.scss b/packages/block-editor/src/components/warning/content.scss index f98172c434f735..46fc49a0fcb5b9 100644 --- a/packages/block-editor/src/components/warning/content.scss +++ b/packages/block-editor/src/components/warning/content.scss @@ -6,7 +6,7 @@ align-items: center; display: flex; flex-wrap: wrap; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); padding: 1em; // Block UI appearance. @@ -16,7 +16,7 @@ .block-editor-warning__message { line-height: $default-line-height; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); color: $gray-900; margin: 0; diff --git a/packages/block-editor/src/components/writing-flow/style.scss b/packages/block-editor/src/components/writing-flow/style.scss index 39d0985c72413c..ec5b02b09baa74 100644 --- a/packages/block-editor/src/components/writing-flow/style.scss +++ b/packages/block-editor/src/components/writing-flow/style.scss @@ -31,7 +31,7 @@ width: fit-content; z-index: 2; background: $black; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); border-radius: $radius-medium; color: $gray-100; text-align: center; diff --git a/packages/block-library/src/more/editor.scss b/packages/block-library/src/more/editor.scss index 86c3b4ed9c1105..9b445e2cfd9833 100644 --- a/packages/block-library/src/more/editor.scss +++ b/packages/block-library/src/more/editor.scss @@ -19,7 +19,7 @@ font-size: var(--wpds-typography-font-size-md); text-transform: uppercase; font-weight: var(--wpds-typography-font-weight-emphasis); - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); color: $gray-700; display: inline-flex; white-space: nowrap; diff --git a/packages/block-library/src/navigation/editor.scss b/packages/block-library/src/navigation/editor.scss index 649a8db5633438..57b76ca474de27 100644 --- a/packages/block-library/src/navigation/editor.scss +++ b/packages/block-library/src/navigation/editor.scss @@ -265,7 +265,7 @@ $color-control-label-height: 20px; align-items: center; min-width: $grid-unit-10 * 12; font-size: var(--wpds-typography-font-size-md); - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); .wp-block-navigation.is-selected & { display: none; @@ -395,7 +395,7 @@ $color-control-label-height: 20px; .wp-block-navigation-placeholder__actions { display: flex; font-size: var(--wpds-typography-font-size-md); - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); gap: $grid-unit-15 * 0.5; align-items: center; diff --git a/packages/block-library/src/nextpage/editor.scss b/packages/block-library/src/nextpage/editor.scss index 82b1e6b8b5132e..a9ded16bc0eb4e 100644 --- a/packages/block-library/src/nextpage/editor.scss +++ b/packages/block-library/src/nextpage/editor.scss @@ -19,7 +19,7 @@ position: relative; text-transform: uppercase; font-weight: var(--wpds-typography-font-weight-emphasis); - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); color: $gray-700; border-radius: 4px; background: $white; diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 96d7e0f78e0806..523cd79595b57c 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -4,6 +4,7 @@ ### Enhancements +- `DropdownMenu`, `DropZone`, `Placeholder`, `RadioControl`, `ResizableBox`, `Snackbar`, `ToolbarButton`, and `Tooltip`: Use the `--wpds-typography-font-family-body` token for their font family. - `ToolsPanel`: Use WPDS colors for the reset label and the disabled "Reset all" menu item. Legacy `--wp-components-color-accent-darker-10` overrides no longer affect them ([#86797](https://github.com/WordPress/gutenberg/pull/86797)). - `Badge`: Use the `--wpds-typography-line-height-sm` token for its line height ([#87154](https://github.com/WordPress/gutenberg/pull/87154)). - `TimePicker`: Use the WordPress UI select for choosing a month ([#87079](https://github.com/WordPress/gutenberg/pull/87079)). diff --git a/packages/components/src/drop-zone/style.scss b/packages/components/src/drop-zone/style.scss index 3bfb2dec9c6ea4..13ccd3100ba18a 100644 --- a/packages/components/src/drop-zone/style.scss +++ b/packages/components/src/drop-zone/style.scss @@ -82,6 +82,6 @@ } .components-drop-zone__content-text { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); } diff --git a/packages/components/src/dropdown-menu/style.scss b/packages/components/src/dropdown-menu/style.scss index f13da2dd6571ef..201c5956658bde 100644 --- a/packages/components/src/dropdown-menu/style.scss +++ b/packages/components/src/dropdown-menu/style.scss @@ -14,7 +14,7 @@ .components-dropdown-menu__menu { width: 100%; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); line-height: $default-line-height; diff --git a/packages/components/src/placeholder/style.scss b/packages/components/src/placeholder/style.scss index f0b513352d3685..933651a3813364 100644 --- a/packages/components/src/placeholder/style.scss +++ b/packages/components/src/placeholder/style.scss @@ -32,7 +32,7 @@ .components-placeholder__instructions, .components-placeholder__label, .components-placeholder__fieldset { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); // Global Styles can affect this so we are resetting. letter-spacing: initial; @@ -69,7 +69,7 @@ justify-content: flex-start; p { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); } } diff --git a/packages/components/src/radio-control/style.scss b/packages/components/src/radio-control/style.scss index c3c354d1646a04..7f2da1ffbacc46 100644 --- a/packages/components/src/radio-control/style.scss +++ b/packages/components/src/radio-control/style.scss @@ -7,7 +7,7 @@ margin: 0; padding: 0; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); } diff --git a/packages/components/src/resizable-box/resize-tooltip/style.module.scss b/packages/components/src/resizable-box/resize-tooltip/style.module.scss index 0bc2ba515c171c..fe9e0f3ba761d5 100644 --- a/packages/components/src/resizable-box/resize-tooltip/style.module.scss +++ b/packages/components/src/resizable-box/resize-tooltip/style.module.scss @@ -22,7 +22,7 @@ background: $components-color-foreground; border-radius: $radius-small; box-sizing: border-box; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: 12px; color: $components-color-foreground-inverted; padding: $grid-unit-05 $grid-unit-10; diff --git a/packages/components/src/snackbar/style.scss b/packages/components/src/snackbar/style.scss index 983949d1192732..311f12ec28b2ed 100644 --- a/packages/components/src/snackbar/style.scss +++ b/packages/components/src/snackbar/style.scss @@ -5,7 +5,7 @@ @use "../utils/theme-variables" as *; .components-snackbar { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); background: rgba($black, 0.85); // Emulates #1e1e1e closely. backdrop-filter: blur($grid-unit-20) saturate(180%); diff --git a/packages/components/src/toolbar/toolbar-button/style.scss b/packages/components/src/toolbar/toolbar-button/style.scss index 182ce2554ced3c..7637f8284e9089 100644 --- a/packages/components/src/toolbar/toolbar-button/style.scss +++ b/packages/components/src/toolbar/toolbar-button/style.scss @@ -1,5 +1,3 @@ -@use "@wordpress/base-styles/variables" as *; - .components-toolbar__control.components-button { position: relative; @@ -10,7 +8,7 @@ &[data-subscript]::after { content: attr(data-subscript); - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); font-weight: var(--wpds-typography-font-weight-emphasis); line-height: 12px; diff --git a/packages/components/src/tooltip/style.scss b/packages/components/src/tooltip/style.scss index 8a61f79bbc095f..5d0dddb3f7a385 100644 --- a/packages/components/src/tooltip/style.scss +++ b/packages/components/src/tooltip/style.scss @@ -7,7 +7,7 @@ // #1e1e1e. Without that dark theme context, the token can resolve to a light // background. Use the same fixed color here to keep the tooltip dark. background: $gray-900; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); border-radius: var(--wpds-border-radius-md); color: $gray-100; text-align: center; diff --git a/packages/edit-post/src/components/welcome-guide/style.scss b/packages/edit-post/src/components/welcome-guide/style.scss index 7c5d500d9cf411..29a4270cafe5ad 100644 --- a/packages/edit-post/src/components/welcome-guide/style.scss +++ b/packages/edit-post/src/components/welcome-guide/style.scss @@ -16,7 +16,7 @@ } &__heading { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: 24px; line-height: 1.4; margin: $grid-unit-20 0 $grid-unit-20 0; diff --git a/packages/edit-site/src/components/welcome-guide/style.scss b/packages/edit-site/src/components/welcome-guide/style.scss index 152d8a59701957..602be4fdbed9e0 100644 --- a/packages/edit-site/src/components/welcome-guide/style.scss +++ b/packages/edit-site/src/components/welcome-guide/style.scss @@ -28,7 +28,7 @@ } &__heading { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: 24px; line-height: 1.4; margin: $grid-unit-20 0 $grid-unit-20 0; diff --git a/packages/edit-widgets/src/blocks/widget-area/editor.scss b/packages/edit-widgets/src/blocks/widget-area/editor.scss index de7b1170432e13..62c127e0af111b 100644 --- a/packages/edit-widgets/src/blocks/widget-area/editor.scss +++ b/packages/edit-widgets/src/blocks/widget-area/editor.scss @@ -9,7 +9,7 @@ $panel-title-height: 48px; margin-right: auto; .components-panel__body > .components-panel__body-title { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); margin: 0; height: $panel-title-height; // Create a stacking context and make sure it's higher is than the content. diff --git a/packages/edit-widgets/src/components/welcome-guide/style.scss b/packages/edit-widgets/src/components/welcome-guide/style.scss index 6e10e7dbe59c0d..6e1192546e5ae4 100644 --- a/packages/edit-widgets/src/components/welcome-guide/style.scss +++ b/packages/edit-widgets/src/components/welcome-guide/style.scss @@ -15,7 +15,7 @@ } &__heading { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: 24px; line-height: 1.4; margin: $grid-unit-20 0 $grid-unit-20 0; diff --git a/packages/edit-widgets/src/components/widget-areas-block-editor-content/style.scss b/packages/edit-widgets/src/components/widget-areas-block-editor-content/style.scss index dfdfeb1202e7f1..4103c32cdcaf47 100644 --- a/packages/edit-widgets/src/components/widget-areas-block-editor-content/style.scss +++ b/packages/edit-widgets/src/components/widget-areas-block-editor-content/style.scss @@ -1,10 +1,8 @@ -@use "@wordpress/base-styles/variables" as *; - .edit-widgets-block-editor { position: relative; // This is the default font that is going to be used in the content of the areas (blocks). - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); // Block list needs to stretch to full screen height so blocks can // be deselected when clicking outside widget areas. @@ -27,7 +25,7 @@ // These rules enhance the specificity to reduce that inheritance. // This is copied from edit-post/src/components/style.scss but without the padding. & .components-button { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); &.is-tertiary, diff --git a/packages/editor/src/components/global-styles-sidebar/style.scss b/packages/editor/src/components/global-styles-sidebar/style.scss index 66631a767d11a0..528bbedfc603b8 100644 --- a/packages/editor/src/components/global-styles-sidebar/style.scss +++ b/packages/editor/src/components/global-styles-sidebar/style.scss @@ -116,7 +116,7 @@ } &__heading { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: 24px; line-height: 1.4; margin: $grid-unit-20 0 $grid-unit-20 0; diff --git a/packages/editor/src/components/visual-editor/style.scss b/packages/editor/src/components/visual-editor/style.scss index 433217f71e57a0..a689935dc77565 100644 --- a/packages/editor/src/components/visual-editor/style.scss +++ b/packages/editor/src/components/visual-editor/style.scss @@ -47,7 +47,7 @@ // These rules enhance the specificity to reduce that inheritance. // This is duplicated in edit-site. & .components-button { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); padding: 6px 12px; diff --git a/packages/widgets/src/blocks/legacy-widget/editor.scss b/packages/widgets/src/blocks/legacy-widget/editor.scss index f140e92787e4f5..9d7ef095b5006c 100644 --- a/packages/widgets/src/blocks/legacy-widget/editor.scss +++ b/packages/widgets/src/blocks/legacy-widget/editor.scss @@ -14,7 +14,7 @@ .wp-block-legacy-widget__edit-form-title { color: $black; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: 14px; font-weight: var(--wpds-typography-font-weight-emphasis); margin: 0 0 $grid-unit-15 0; @@ -125,7 +125,7 @@ &, & h3, & p { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); } diff --git a/packages/widgets/src/blocks/widget-group/editor.scss b/packages/widgets/src/blocks/widget-group/editor.scss index 4001d5d3563375..81cc7d474cef96 100644 --- a/packages/widgets/src/blocks/widget-group/editor.scss +++ b/packages/widgets/src/blocks/widget-group/editor.scss @@ -1,9 +1,8 @@ @use "@wordpress/base-styles/colors" as *; -@use "@wordpress/base-styles/variables" as *; .wp-block-widget-group { .widget-title { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: 18px; font-weight: var(--wpds-typography-font-weight-emphasis); } diff --git a/storybook/global-basic.scss b/storybook/global-basic.scss index 755b23a7611ef4..c65fe6bfe9dff3 100644 --- a/storybook/global-basic.scss +++ b/storybook/global-basic.scss @@ -1,5 +1,3 @@ -@use "@wordpress/base-styles/variables" as *; - body { - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); } diff --git a/storybook/stories/playground/fullpage/reset.scss b/storybook/stories/playground/fullpage/reset.scss index 3aedf34aac8fd3..b5c2ab0c615b47 100644 --- a/storybook/stories/playground/fullpage/reset.scss +++ b/storybook/stories/playground/fullpage/reset.scss @@ -1,5 +1,4 @@ @use "@wordpress/base-styles/mixins" as *; -@use "@wordpress/base-styles/variables" as *; :root { @include reset; @@ -9,7 +8,7 @@ html, body { margin: 0; padding: 0; - font-family: $default-font; + font-family: var(--wpds-typography-font-family-body); font-size: var(--wpds-typography-font-size-md); } diff --git a/tools/stylelint/config.js b/tools/stylelint/config.js index 3f8450da8c8a08..d8ac6d0e709931 100644 --- a/tools/stylelint/config.js +++ b/tools/stylelint/config.js @@ -3,7 +3,7 @@ const CSS_BASELINE_2024_FUNCTIONS = [ 'round', 'rem', 'mod' ]; // Sass treats hyphens and underscores in identifiers as equivalent. const FONT_FAMILY_VARIABLE = - /\$font[-_]family[-_](body|headings|mono)(?![\w-])/; + /\$(?:font[-_]family[-_](body|headings|mono)|default[-_]font)(?![\w-])/; const FONT_FAMILY_VARIABLE_REPLACEMENTS = { body: 'var(--wpds-typography-font-family-body)', @@ -79,10 +79,13 @@ module.exports = { : '$font-weight-medium'; return `\`${ variable }\` has been removed. Use \`var(--wpds-typography-font-weight-default)\` or \`var(--wpds-typography-font-weight-emphasis)\` based on the intended emphasis.`; } - const [ , fontFamily ] = - value.match( FONT_FAMILY_VARIABLE ) ?? []; - if ( fontFamily ) { - return `Avoid using the \`$font-family-${ fontFamily }\` Sass variable. Use \`${ FONT_FAMILY_VARIABLE_REPLACEMENTS[ fontFamily ] }\` instead.`; + const fontFamilyMatch = value.match( FONT_FAMILY_VARIABLE ); + if ( fontFamilyMatch ) { + const fontFamily = fontFamilyMatch[ 1 ]; + const variable = fontFamily + ? `$font-family-${ fontFamily }` + : '$default-font'; + return `Avoid using the \`${ variable }\` Sass variable. Use \`${ FONT_FAMILY_VARIABLE_REPLACEMENTS[ fontFamily ?? 'body' ] }\` instead.`; } const fontSizeMatch = value.match( FONT_SIZE_VARIABLE ); if ( fontSizeMatch ) { From f73a5bd3f2532e63356fca0c1e9aa5a59a648f93 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 27 Nov 2026 02:02:04 +0900 Subject: [PATCH 2/4] Link changelog entries to the pull request --- packages/base-styles/CHANGELOG.md | 2 +- packages/components/CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/base-styles/CHANGELOG.md b/packages/base-styles/CHANGELOG.md index 0dfdac5449381e..6df971d888f287 100644 --- a/packages/base-styles/CHANGELOG.md +++ b/packages/base-styles/CHANGELOG.md @@ -4,7 +4,7 @@ ### Enhancements -- The `input-control` mixin now uses the `--wpds-typography-font-family-body` design token for its font family. +- The `input-control` mixin now uses the `--wpds-typography-font-family-body` design token for its font family ([#87490](https://github.com/WordPress/gutenberg/pull/87490)). - The `input-control` and `editor-input-reset` mixins now use the `--wpds-typography-font-size-md` design token for their font size ([#86961](https://github.com/WordPress/gutenberg/pull/86961)). ## 15.1.0 (2026-11-18) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 523cd79595b57c..1c4ded934ca46f 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -4,7 +4,7 @@ ### Enhancements -- `DropdownMenu`, `DropZone`, `Placeholder`, `RadioControl`, `ResizableBox`, `Snackbar`, `ToolbarButton`, and `Tooltip`: Use the `--wpds-typography-font-family-body` token for their font family. +- `DropdownMenu`, `DropZone`, `Placeholder`, `RadioControl`, `ResizableBox`, `Snackbar`, `ToolbarButton`, and `Tooltip`: Use the `--wpds-typography-font-family-body` token for their font family ([#87490](https://github.com/WordPress/gutenberg/pull/87490)). - `ToolsPanel`: Use WPDS colors for the reset label and the disabled "Reset all" menu item. Legacy `--wp-components-color-accent-darker-10` overrides no longer affect them ([#86797](https://github.com/WordPress/gutenberg/pull/86797)). - `Badge`: Use the `--wpds-typography-line-height-sm` token for its line height ([#87154](https://github.com/WordPress/gutenberg/pull/87154)). - `TimePicker`: Use the WordPress UI select for choosing a month ([#87079](https://github.com/WordPress/gutenberg/pull/87079)). From 0b8ca75e23cb3cb07a2164daa10c17ef6e5bd13d Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 27 Nov 2026 02:18:22 +0900 Subject: [PATCH 3/4] Document the input-control font family change for consumers --- packages/base-styles/CHANGELOG.md | 2 +- packages/components/CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/base-styles/CHANGELOG.md b/packages/base-styles/CHANGELOG.md index 6df971d888f287..b713e5d326b68c 100644 --- a/packages/base-styles/CHANGELOG.md +++ b/packages/base-styles/CHANGELOG.md @@ -4,7 +4,7 @@ ### Enhancements -- The `input-control` mixin now uses the `--wpds-typography-font-family-body` design token for its font family ([#87490](https://github.com/WordPress/gutenberg/pull/87490)). +- The `input-control` mixin now uses the `--wpds-typography-font-family-body` design token for its font family, so reassigning `$default-font` no longer changes it. To keep a custom font, declare `font-family` after including the mixin ([#87490](https://github.com/WordPress/gutenberg/pull/87490)). - The `input-control` and `editor-input-reset` mixins now use the `--wpds-typography-font-size-md` design token for their font size ([#86961](https://github.com/WordPress/gutenberg/pull/86961)). ## 15.1.0 (2026-11-18) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 1c4ded934ca46f..c578e943f9b023 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -4,7 +4,7 @@ ### Enhancements -- `DropdownMenu`, `DropZone`, `Placeholder`, `RadioControl`, `ResizableBox`, `Snackbar`, `ToolbarButton`, and `Tooltip`: Use the `--wpds-typography-font-family-body` token for their font family ([#87490](https://github.com/WordPress/gutenberg/pull/87490)). +- `ComboboxControl`, `DropdownMenu`, `DropZone`, `FormTokenField`, `Placeholder`, `RadioControl`, `ResizableBox`, `Snackbar`, `TextareaControl`, `TextControl`, `ToolbarButton`, and `Tooltip`: Use the `--wpds-typography-font-family-body` token for their font family ([#87490](https://github.com/WordPress/gutenberg/pull/87490)). - `ToolsPanel`: Use WPDS colors for the reset label and the disabled "Reset all" menu item. Legacy `--wp-components-color-accent-darker-10` overrides no longer affect them ([#86797](https://github.com/WordPress/gutenberg/pull/86797)). - `Badge`: Use the `--wpds-typography-line-height-sm` token for its line height ([#87154](https://github.com/WordPress/gutenberg/pull/87154)). - `TimePicker`: Use the WordPress UI select for choosing a month ([#87079](https://github.com/WordPress/gutenberg/pull/87079)). From fe347fb67279833d2fa3d7d3c4c7d3626d44959c Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Thu, 3 Dec 2026 17:54:49 +0900 Subject: [PATCH 4/4] Move body font token changelog entry to Unreleased --- packages/base-styles/CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/base-styles/CHANGELOG.md b/packages/base-styles/CHANGELOG.md index 42240f9d64aec8..3aa575e74475a3 100644 --- a/packages/base-styles/CHANGELOG.md +++ b/packages/base-styles/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Enhancements + +- The `input-control` mixin now uses the `--wpds-typography-font-family-body` design token for its font family, so reassigning `$default-font` no longer changes it. To keep a custom font, declare `font-family` after including the mixin ([#87490](https://github.com/WordPress/gutenberg/pull/87490)). + ### Internal - Remove the unused `.components-popover.more-menu__content` z-index entry ([#87622](https://github.com/WordPress/gutenberg/pull/87622)). @@ -10,7 +14,6 @@ ### Enhancements -- The `input-control` mixin now uses the `--wpds-typography-font-family-body` design token for its font family, so reassigning `$default-font` no longer changes it. To keep a custom font, declare `font-family` after including the mixin ([#87490](https://github.com/WordPress/gutenberg/pull/87490)). - The `wordpress-admin-schemes` mixin and the default custom properties now use `#006daa` for Fresh, and the mixin uses `#bf332b` for Midnight and `#606e00` for Ectoplasm, the primary colors of those schemes in `@wordpress/admin-ui` ([#87673](https://github.com/WordPress/gutenberg/pull/87673)). - The `input-control` and `editor-input-reset` mixins now use the `--wpds-typography-font-size-md` design token for their font size ([#86961](https://github.com/WordPress/gutenberg/pull/86961)).