DEV Community

Discussion on: What CSS font-size units do you prefer to use?

Collapse
 
igor_brussolo profile image
Igor Brussolo πŸ•·οΈπŸ³οΈβ€πŸŒˆ

I always declare the font-size: 100%; for accessibility reasons, if the person has a pre-configured size it is very annoying overwrite it.
Following this same logic I use the rem unit
I rarely exceed 2.5rem I think it is a reasonable size for h1 in some situations it is not pretty but it is sure to be readable and accessible to everyone.