@wordpress/base-styles 10.3.1-next.v.202607070741.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,11 +2,16 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 10.3.0-next.0 (2026-07-07)
5
+ ## 11.0.0 (2026-07-14)
6
+
7
+ ### Breaking Changes
8
+
9
+ - Remove `$font-weight-regular` and `$font-weight-medium`. Use `var(--wpds-typography-font-weight-default)` or `var(--wpds-typography-font-weight-emphasis)` based on the intended emphasis ([#80093](https://github.com/WordPress/gutenberg/pull/80093)).
6
10
 
7
11
  ### Enhancements
8
12
 
9
- - Add `outset-ring__focus` mixin for outline-based focus rings using `--wpds-*` design tokens ([#78698](https://github.com/WordPress/gutenberg/pull/78698)).
13
+ - Use semantic `@wordpress/theme` font-weight tokens in typography mixins, and align the legacy font-family variables with the theme typography tokens ([#80093](https://github.com/WordPress/gutenberg/pull/80093)).
14
+ - Add `outset-ring__focus` mixin for outline-based focus rings using `--wpds-*` design tokens ([#78698](https://github.com/WordPress/gutenberg/pull/78698), [#80082](https://github.com/WordPress/gutenberg/pull/80082)).
10
15
 
11
16
  ## 10.2.0 (2026-07-01)
12
17
 
package/_mixins.scss CHANGED
@@ -13,12 +13,12 @@
13
13
 
14
14
  @mixin _text-heading() {
15
15
  font-family: variables.$font-family-headings;
16
- font-weight: variables.$font-weight-medium;
16
+ font-weight: wpds.var("--wpds-typography-font-weight-emphasis");
17
17
  }
18
18
 
19
19
  @mixin _text-body() {
20
20
  font-family: variables.$font-family-body;
21
- font-weight: variables.$font-weight-regular;
21
+ font-weight: wpds.var("--wpds-typography-font-weight-default");
22
22
  }
23
23
 
24
24
  @mixin heading-small() {
package/_variables.scss CHANGED
@@ -12,7 +12,11 @@
12
12
  * Fonts & basic variables.
13
13
  */
14
14
 
15
- $default-font: -apple-system, BlinkMacSystemFont,"Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,"Helvetica Neue", sans-serif; // Todo: deprecate in favor of $family variables
15
+ $font-family-headings: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
16
+ $font-family-body: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
17
+ $font-family-mono: Menlo, Consolas, monaco, monospace;
18
+
19
+ $default-font: $font-family-body; // Todo: deprecate in favor of $family variables
16
20
  $default-line-height: 1.4; // Todo: deprecate in favor of $line-height tokens
17
21
 
18
22
  /**
@@ -35,15 +39,6 @@ $font-line-height-large: 28px;
35
39
  $font-line-height-x-large: 32px;
36
40
  $font-line-height-2x-large: 40px;
37
41
 
38
- // Weights
39
- $font-weight-regular: 400;
40
- $font-weight-medium: 499; // ensures fallback to 400 (instead of 600)
41
-
42
- // Families
43
- $font-family-headings: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
44
- $font-family-body: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
45
- $font-family-mono: Menlo, Consolas, monaco, monospace;
46
-
47
42
  /**
48
43
  * Grid System.
49
44
  * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
package/_z-index.scss CHANGED
@@ -45,7 +45,6 @@ $z-layers: (
45
45
  // #wpadminbar { z-index: 99999 }
46
46
  ".interface-interface-skeleton__sidebar": 100000,
47
47
  ".editor-layout__toggle-sidebar-panel": 100000,
48
- ".edit-widgets-sidebar": 100000,
49
48
  ".editor-post-publish-panel": 100001,
50
49
  // For larger views, the wp-admin navbar dropdown should be at top of
51
50
  // the Publish Post sidebar.
@@ -58,9 +58,10 @@ $fallbacks: (
58
58
  'var(--wp-admin-theme-color, #3858e9)',
59
59
  '--wpds-color-background-thumb-brand-active':
60
60
  'var(--wp-admin-theme-color, #3858e9)',
61
- '--wpds-color-background-thumb-neutral-disabled': '#dbdbdb',
61
+ '--wpds-color-background-thumb-brand-disabled': '#dbdbdb',
62
62
  '--wpds-color-background-thumb-neutral-weak': '#8d8d8d',
63
63
  '--wpds-color-background-thumb-neutral-weak-active': '#6e6e6e',
64
+ '--wpds-color-background-thumb-neutral-weak-disabled': '#dbdbdb',
64
65
  '--wpds-color-background-track-neutral': '#dbdbdb',
65
66
  '--wpds-color-background-track-neutral-weak': '#f0f0f0',
66
67
  '--wpds-color-foreground-content-caution': '#281d00',
@@ -96,6 +97,7 @@ $fallbacks: (
96
97
  '--wpds-color-foreground-interactive-neutral-strong-active': '#f0f0f0',
97
98
  '--wpds-color-foreground-interactive-neutral-strong-disabled': '#8d8d8d',
98
99
  '--wpds-color-foreground-interactive-neutral-weak': '#707070',
100
+ '--wpds-color-foreground-interactive-neutral-weak-active': '#1e1e1e',
99
101
  '--wpds-color-foreground-interactive-neutral-weak-disabled': '#8d8d8d',
100
102
  '--wpds-color-stroke-focus': 'var(--wp-admin-theme-color, #3858e9)',
101
103
  '--wpds-color-stroke-interactive-brand':
@@ -157,14 +159,6 @@ $fallbacks: (
157
159
  '--wpds-dimension-surface-width-sm': '320px',
158
160
  '--wpds-dimension-surface-width-xl': '720px',
159
161
  '--wpds-dimension-surface-width-xs': '240px',
160
- '--wpds-elevation-lg':
161
- '0px 5px 15px 0px #00000014, 0px 15px 27px 0px #00000012, 0px 30px 36px 0px #0000000a, 0px 50px 43px 0px #00000005',
162
- '--wpds-elevation-md':
163
- '0px 2px 3px 0px #0000000d, 0px 4px 5px 0px #0000000a, 0px 12px 12px 0px #00000008, 0px 16px 16px 0px #00000005',
164
- '--wpds-elevation-sm':
165
- '0px 1px 2px 0px #0000000d, 0px 2px 3px 0px #0000000a, 0px 6px 6px 0px #00000008, 0px 8px 8px 0px #00000005',
166
- '--wpds-elevation-xs':
167
- '0px 1px 1px 0px #00000008, 0px 1px 2px 0px #00000005, 0px 3px 3px 0px #00000005, 0px 4px 4px 0px #00000003',
168
162
  '--wpds-motion-duration-lg': '300ms',
169
163
  '--wpds-motion-duration-md': '200ms',
170
164
  '--wpds-motion-duration-sm': '100ms',
@@ -185,8 +179,8 @@ $fallbacks: (
185
179
  '--wpds-typography-font-size-sm': '12px',
186
180
  '--wpds-typography-font-size-xl': '20px',
187
181
  '--wpds-typography-font-size-xs': '11px',
188
- '--wpds-typography-font-weight-medium': '499',
189
- '--wpds-typography-font-weight-regular': '400',
182
+ '--wpds-typography-font-weight-default': '400',
183
+ '--wpds-typography-font-weight-emphasis': '600',
190
184
  '--wpds-typography-line-height-2xl': '40px',
191
185
  '--wpds-typography-line-height-lg': '28px',
192
186
  '--wpds-typography-line-height-md': '24px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/base-styles",
3
- "version": "10.3.1-next.v.202607070741.0+a51d59513",
3
+ "version": "11.0.0",
4
4
  "description": "Base SCSS utilities and variables for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "f637726e370c8b23695ed9af82adbe171ad235d8"
50
+ "gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
51
51
  }