Badges scale to match the size of the immediate parent element by using relative font sizing and em units.