Edit: Though even simpler than that is the width media query, which I think you might be looking for: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/widt...
Edit: Though even simpler than that is the width media query, which I think you might be looking for: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/widt...
I've just found that approach very clunky in practice, hence my comment about it snowballs into effectively having 3 different CSS (phone/tablet/desktop) and wrapped in media width queries.
Though maybe I use it incorrectly.
I'm always open to learning something new :)
Also, some units cascade. So if you set the top-level or parent to a particular size, then child elements inside can inherit (or ignore) the unit. This means at a top level you can set your font-size for each @media width, and then use relative units and it will inherit down. But that only works for very small websites, because it introduces subtle bugs as you incorporate more controls from people not aware of your particular practice.
https://stackoverflow.com/questions/40722882/css-native-vari...
https://www.w3.org/TR/mediaqueries-5/#at-ruledef-custom-medi...
<div className="text-sm lg:text-lg"> Hello World </div>
I don't know how resizing defaults would work well for most cases instead of specifying what you want.