Using a Fluid Type Scale in WordPress Block Themes with Theme.json

Fluid typography is type that adapts in size based on viewport width. Rich Tabor explains how toΒ  build a type scale with theme.json. Using the CSS clamp() function, Rich shows a method for setting minimum, preferred, and maximum values to create scaling effects in a theme. This is a little deep in the weeds for front-end theme developers, but these details and experiments make building new WordPress themes a bit more exciting and educational.