WordPress 6.6 can break your overwritten fontsizes

On the project we are currently working on, we updated to WordPress 6.6 and immediately got to a breaking issue: if you used the default font size slugs in your theme.json to create your own font sizes (overwriting the defaults), those overwrites were no longer used. Instead, WordPress falls back to its own defaults.

The Easy Solution

Good thing there is a simple solution: use defaultFontSizes: false, within your typography settings. This way, you still get to use your overwrites. Just keep in mind that if you used a mix of overwrites and default sizes, you might have to change a bit more than just adding that line.

Codefragment van een configuratiebestand voor typografie, met instellingen voor standaard lettergroottes en opgemaakte lettertypen.

Are you testing WordPress 6.6 and also running into any issues? Let us know, so we can help each other out with solutions!