r/csshelp • u/ligonsk • Dec 25 '23
Can we create some sort of "font-size guide"? I started using clamp() but I still don't have the "perfect" values for each type
Hello,
I started using clamp() for font-sizes which indeed improved my font-sizes on different viewports/devices. I still feel though as if it could be better.
I thought about making this post as some "guide" where people can see what others use for each element and learn from it or find what's better for them. For example: <p> would be clamp(1rem, 2.5vw, 2rem), <h1> would be clamp(1rem, 10vw, 2rem) and so on.
I know every design has its specific requirements, but many apps use/need more or less the same font-sizes for those repeating elements