How to change the font size globally in React v5?

What’s a good way to add a font size select display option to the app? I found a CSS solution for v4, but v5 uses CSS variables and there doesn’t appear to be one for font size.

I’ve tried setting the body font size in variables.css, but this doesn’t affect IonButton or IonCard text, so I was wondering if there is a more general solution?