Skip to content

Typography: Theme defined font sizes are no longer working #57889

@iamtakashi

Description

@iamtakashi

Description

It looks like the font sizes a theme defines in its theme.json are no longer working.

without plugin with plugin
localhost local_ (12) localhost local_ (13)

For example, in the theme, --wp--preset--font-size--medium should be 1.05rem but with Gutenberg plugin, the size is clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.625), 20px)

I can see this issue with other themes too.

Step-by-step reproduction instructions

  1. Open a homepage in the browser.
  2. Deactivate Gutenberg trunk
  3. Open the homepage in a new tab
  4. Notice the difeerence

Screenshots, screen recording, code snippet

No response

Environment info

  • WP 6.4.2
  • Gutenberg Trunk

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Labels

[Feature] TypographyFont and typography-related issues and PRs[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions