Check out example codes for "clamp css". It will help you in understanding the concepts better.

Code Example 1

font-size: clamp(1rem, 2.5vw, 2rem);
font-size: clamp(1.5rem, 2.5vw, 4rem);
font-size: clamp(1rem, 10vw, 2rem);

Learn ReactJs, React Native from akashmittal.com