I think it's all about well designed, curated and developed design system.
line-height is correlated with typography.
Example this dribbble picture.
In .scss preprocessors it's possible to define variables
(developers, usually do more intelligent/complex issues than styling
so this may be the mess you mentioned)
It's possible to define line-height on a ...