Visual hierarchy of typography in UI in practice

There are so many resources about this in theory, but I can't seem to be find any detailed guides or resources on how to apply the principles in an existing complex UI. The most obvious ones would be differentiation by copy size, In many UIs like in facebook, youtube that manage to pull of good hierarchy at a micro as well as macro level. what would be good guide or process to follow.