Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 46 additions & 46 deletions packages/base-styles/internal/_wpds-token-fallbacks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,121 +19,121 @@ $fallbacks: (
"var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-background-interactive-brand-strong-active":
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black)",
"--wpds-color-background-interactive-brand-strong-disabled": "#e6e6e6",
"--wpds-color-background-interactive-brand-strong-disabled": "#e5e5e5",
"--wpds-color-background-interactive-brand-weak": "#0000",
"--wpds-color-background-interactive-brand-weak-active":
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)",
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 13%, white)",
"--wpds-color-background-interactive-brand-weak-disabled": "#0000",
"--wpds-color-background-interactive-error": "#0000",
"--wpds-color-background-interactive-error-active": "#fff6f5",
"--wpds-color-background-interactive-error-disabled": "#0000",
"--wpds-color-background-interactive-error-strong": "#cc1818",
"--wpds-color-background-interactive-error-strong-active": "#b90000",
"--wpds-color-background-interactive-error-strong-disabled": "#e6e6e6",
"--wpds-color-background-interactive-error-strong-active": "#b80000",
"--wpds-color-background-interactive-error-strong-disabled": "#e5e5e5",
"--wpds-color-background-interactive-error-weak": "#0000",
"--wpds-color-background-interactive-error-weak-active": "#fae5e1",
"--wpds-color-background-interactive-error-weak-active": "#fae4e0",
"--wpds-color-background-interactive-error-weak-disabled": "#0000",
"--wpds-color-background-interactive-neutral": "#fff",
"--wpds-color-background-interactive-neutral-active": "#fff",
"--wpds-color-background-interactive-neutral-disabled": "#fff",
"--wpds-color-background-interactive-neutral-strong": "#2d2d2d",
"--wpds-color-background-interactive-neutral-strong": "#2e2e2e",
"--wpds-color-background-interactive-neutral-strong-active": "#1e1e1e",
"--wpds-color-background-interactive-neutral-strong-disabled": "#e6e6e6",
"--wpds-color-background-interactive-neutral-strong-disabled": "#e5e5e5",
"--wpds-color-background-interactive-neutral-weak": "#0000",
"--wpds-color-background-interactive-neutral-weak-active": "#ededed",
"--wpds-color-background-interactive-neutral-weak-active": "#ececec",
"--wpds-color-background-interactive-neutral-weak-disabled": "#0000",
"--wpds-color-background-surface-brand":
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 9%, white)",
"--wpds-color-background-surface-caution": "#fee995",
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 10%, white)",
"--wpds-color-background-surface-caution": "#fde893",
"--wpds-color-background-surface-caution-weak": "#fff9ca",
"--wpds-color-background-surface-error": "#fae5e1",
"--wpds-color-background-surface-error": "#fae4e0",
"--wpds-color-background-surface-error-weak": "#fff6f5",
"--wpds-color-background-surface-info": "#deebfa",
"--wpds-color-background-surface-info": "#ddebfa",
"--wpds-color-background-surface-info-weak": "#f3f9ff",
"--wpds-color-background-surface-neutral": "#fcfcfc",
"--wpds-color-background-surface-neutral-strong": "#fff",
"--wpds-color-background-surface-neutral-weak": "#f4f4f4",
"--wpds-color-background-surface-success": "#c2f8ca",
"--wpds-color-background-surface-neutral-weak": "#f3f3f3",
"--wpds-color-background-surface-success": "#c0f8c9",
"--wpds-color-background-surface-success-weak": "#ebffed",
"--wpds-color-background-surface-warning": "#fde6be",
"--wpds-color-background-surface-warning": "#fde5bd",
"--wpds-color-background-surface-warning-weak": "#fff7e1",
"--wpds-color-background-thumb-brand":
"var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-background-thumb-brand-active":
"var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-background-thumb-brand-disabled": "#dbdbdb",
"--wpds-color-background-thumb-neutral": "#1e1e1e",
"--wpds-color-background-thumb-neutral-weak": "#8d8d8d",
"--wpds-color-background-thumb-neutral-weak-active": "#6e6e6e",
"--wpds-color-background-thumb-neutral-weak": "#8b8b8b",
"--wpds-color-background-thumb-neutral-weak-active": "#6c6c6c",
"--wpds-color-background-thumb-neutral-weak-disabled": "#dbdbdb",
"--wpds-color-background-track-neutral": "#dbdbdb",
"--wpds-color-background-track-neutral-weak": "#f0f0f0",
"--wpds-color-foreground-content-caution": "#281d00",
"--wpds-color-foreground-content-caution-weak": "#836a00",
"--wpds-color-foreground-content-caution-weak": "#816900",
"--wpds-color-foreground-content-error": "#470000",
"--wpds-color-foreground-content-error-weak": "#cc1818",
"--wpds-color-foreground-content-info": "#001b4f",
"--wpds-color-foreground-content-info-weak": "#006bd7",
"--wpds-color-foreground-content-info-weak": "#0069d5",
"--wpds-color-foreground-content-neutral": "#1e1e1e",
"--wpds-color-foreground-content-neutral-weak": "#707070",
"--wpds-color-foreground-content-neutral-weak": "#6e6e6e",
"--wpds-color-foreground-content-success": "#002900",
"--wpds-color-foreground-content-success-weak": "#008030",
"--wpds-color-foreground-content-success-weak": "#007e2e",
"--wpds-color-foreground-content-warning": "#2e1900",
"--wpds-color-foreground-content-warning-weak": "#936300",
"--wpds-color-foreground-content-warning-weak": "#906200",
"--wpds-color-foreground-interactive-brand":
"var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-foreground-interactive-brand-active":
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 52%, black)",
"--wpds-color-foreground-interactive-brand-disabled": "#8d8d8d",
"--wpds-color-foreground-interactive-brand-disabled": "#8b8b8b",
"--wpds-color-foreground-interactive-brand-strong": "#fff",
"--wpds-color-foreground-interactive-brand-strong-active": "#fff",
"--wpds-color-foreground-interactive-brand-strong-disabled": "#8d8d8d",
"--wpds-color-foreground-interactive-brand-strong-disabled": "#8b8b8b",
"--wpds-color-foreground-interactive-error": "#cc1818",
"--wpds-color-foreground-interactive-error-active": "#470000",
"--wpds-color-foreground-interactive-error-disabled": "#8d8d8d",
"--wpds-color-foreground-interactive-error-disabled": "#8b8b8b",
"--wpds-color-foreground-interactive-error-strong": "#f2efef",
"--wpds-color-foreground-interactive-error-strong-active": "#f2efef",
"--wpds-color-foreground-interactive-error-strong-disabled": "#8d8d8d",
"--wpds-color-foreground-interactive-error-strong-disabled": "#8b8b8b",
"--wpds-color-foreground-interactive-neutral": "#1e1e1e",
"--wpds-color-foreground-interactive-neutral-active": "#1e1e1e",
"--wpds-color-foreground-interactive-neutral-disabled": "#8d8d8d",
"--wpds-color-foreground-interactive-neutral-disabled": "#8b8b8b",
"--wpds-color-foreground-interactive-neutral-strong": "#f0f0f0",
"--wpds-color-foreground-interactive-neutral-strong-active": "#f0f0f0",
"--wpds-color-foreground-interactive-neutral-strong-disabled": "#8d8d8d",
"--wpds-color-foreground-interactive-neutral-weak": "#707070",
"--wpds-color-foreground-interactive-neutral-strong-disabled": "#8b8b8b",
"--wpds-color-foreground-interactive-neutral-weak": "#6e6e6e",
"--wpds-color-foreground-interactive-neutral-weak-active": "#1e1e1e",
"--wpds-color-foreground-interactive-neutral-weak-disabled": "#8d8d8d",
"--wpds-color-foreground-interactive-neutral-weak-disabled": "#8b8b8b",
"--wpds-color-stroke-focus": "var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-stroke-interactive-brand":
"var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-stroke-interactive-brand-active":
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)",
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 84%, black)",
"--wpds-color-stroke-interactive-brand-disabled": "#dbdbdb",
"--wpds-color-stroke-interactive-error": "#cc1818",
"--wpds-color-stroke-interactive-error-active": "#9d0000",
"--wpds-color-stroke-interactive-error-active": "#9c0000",
"--wpds-color-stroke-interactive-error-disabled": "#dbdbdb",
"--wpds-color-stroke-interactive-error-strong": "#cc1818",
"--wpds-color-stroke-interactive-neutral": "#8d8d8d",
"--wpds-color-stroke-interactive-neutral-active": "#6e6e6e",
"--wpds-color-stroke-interactive-neutral": "#8b8b8b",
"--wpds-color-stroke-interactive-neutral-active": "#6c6c6c",
"--wpds-color-stroke-interactive-neutral-disabled": "#dbdbdb",
"--wpds-color-stroke-interactive-neutral-strong": "#6e6e6e",
"--wpds-color-stroke-interactive-neutral-strong": "#6c6c6c",
"--wpds-color-stroke-surface-brand":
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 40%, white)",
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 39%, white)",
"--wpds-color-stroke-surface-brand-strong":
"var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-stroke-surface-caution": "#d0c28b",
"--wpds-color-stroke-surface-caution-strong": "#836a00",
"--wpds-color-stroke-surface-error": "#e0afa7",
"--wpds-color-stroke-surface-caution": "#cfc18a",
"--wpds-color-stroke-surface-caution-strong": "#816900",
"--wpds-color-stroke-surface-error": "#e1b1a9",
"--wpds-color-stroke-surface-error-strong": "#cc1818",
"--wpds-color-stroke-surface-info": "#adc6e2",
"--wpds-color-stroke-surface-info-strong": "#006bd7",
"--wpds-color-stroke-surface-info": "#acc5e2",
"--wpds-color-stroke-surface-info-strong": "#0069d5",
"--wpds-color-stroke-surface-neutral": "#dbdbdb",
"--wpds-color-stroke-surface-neutral-strong": "#8d8d8d",
"--wpds-color-stroke-surface-neutral-strong": "#8b8b8b",
"--wpds-color-stroke-surface-neutral-weak": "#f0f0f0",
"--wpds-color-stroke-surface-success": "#92d39d",
"--wpds-color-stroke-surface-success-strong": "#008030",
"--wpds-color-stroke-surface-warning": "#e1bd7c",
"--wpds-color-stroke-surface-warning-strong": "#936300",
"--wpds-color-stroke-surface-success": "#91d29c",
"--wpds-color-stroke-surface-success-strong": "#007e2e",
"--wpds-color-stroke-surface-warning": "#e0bc7d",
"--wpds-color-stroke-surface-warning-strong": "#906200",
"--wpds-cursor-control": "pointer",
"--wpds-dimension-gap-2xl": "32px",
"--wpds-dimension-gap-3xl": "40px",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/text/test/index.browser.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe( 'Text', () => {
</Text>
);
expect( getComputedStyle( screen.getByRole( 'heading' ) ).color ).toBe(
'rgb(112, 112, 112)'
'rgb(110, 110, 110)'
);
} );

Expand Down Expand Up @@ -124,7 +124,7 @@ describe( 'Text', () => {
);

expect( getComputedStyle( screen.getByRole( 'heading' ) ).color ).toBe(
'rgb(112, 112, 112)'
'rgb(110, 110, 110)'
);
} );

Expand Down
4 changes: 4 additions & 0 deletions packages/theme/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Generate Figma-compatible typography exports with single font families, numeric font weights, and typography scopes ([#86211](https://github.com/WordPress/gutenberg/pull/86211)).

### Bug Fixes

- Preserve generated color contrast after rounding, slightly shifting default color token values, and report remaining failures from the emitted `ThemeProvider` colors ([#86189](https://github.com/WordPress/gutenberg/pull/86189)).

### Internal

- Update the Storybook development dependencies to 10.6.6 ([#86507](https://github.com/WordPress/gutenberg/pull/86507)).
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ The callback reports failures from the generated ramp checks and a defined set o

The contrast warnings also cover the focus-ring color and the resting and active strong brand fills against all three neutral surfaces and the brand surface at a 3:1 minimum. They use the final generated colors after seed adjustments. These checks report failures without adjusting the colors. Text pairs retain their 4.5:1 minimum.

For example, with the default primary `#3858e9` and background `#1e1e1e`, the resting strong brand fill has 2.97:1 contrast against `background.surface.neutral` and 2.76:1 against `background.surface.neutral-strong`. The focus ring, active fill, and text pairs still meet their targets. Choose a different primary or background seed to resolve the reported pair; for example, the default primary with background `#000000` meets these checked contrast targets.
For example, with the default primary `#3858e9` and background `#1e1e1e`, the resting strong brand fill has 2.93:1 contrast against `background.surface.neutral` and 2.69:1 against `background.surface.neutral-strong`. The focus ring, active fill, and text pairs still meet their targets. Choose a different primary or background seed to resolve the reported pair; for example, the default primary with background `#000000` meets these checked contrast targets.

### TypeScript props and warnings

Expand Down
Loading
Loading