-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
next/font recommendation breaks letter-spacing #47575
Copy link
Copy link
Open
Labels
has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.There’s a bug, but users have a complete workaround, so no urgent fix or release is needed.integration: nextjsNext.jsNext.jsscope: typographyChanges related to typography.Changes related to typography.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Metadata
Metadata
Assignees
Labels
has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.There’s a bug, but users have a complete workaround, so no urgent fix or release is needed.integration: nextjsNext.jsNext.jsscope: typographyChanges related to typography.Changes related to typography.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Steps to reproduce
Steps:
TypographycomponentsCurrent behavior
Switching between the two:
Screen.Recording.2026-01-07.at.10.52.35.mov
Expected behavior
No response
Context
Noticed this in mui/mui-public#1020
Caused by
material-ui/packages/mui-material/src/styles/createTypography.js
Lines 52 to 56 in 4f62861
The
fontFamilyis set to'var(--font-roboto)'and therefore doesn't correspond to the default fontfamily, therefore the letter-spacing intended for roboto is not applied, yet the font is roboto.Your environment
npx @mui/envinfoSearch keywords: next/font letter-spacing