Typography Helpers

In this chapter, we will study about Typography Helpers. Typography helpers are used to format your text in semantically relevant ways. Helper classes in Foundation let you to scaffold some typographic styles quicker.

The following table lists the Typography Helpers, which are used in Foundation.

Sr.No.Typography helper & Description
1Text AlignmentIt helps in changing the element’s text alignment like leftrightcenter and justify.
2SubheaderSubheaders can be added to any header element by using the .subheader class.
3Lead ParagraphIt is considerably larger block of text compared to the normal text, which can be used for advertisement or other descriptive text.
4Un-bulleted ListBy default, the <ul> is a bulleted list in Foundation. To remove the bullets, you can use .no-bullet class.
5StatisticsWhenever you are dealing with dashboard, you need to highlight some important numbers. You can achieve this by using .stat class.

Sass Reference

Variables

The following table lists the SASS variables in the project’s settings file that makes the component’s default styles to get customized.

Sr.No.Name & DescriptionTypeDefault Value
1$lead-font-sizeFont size for lead paragraphs by default.Number$global-font-size * 1.25
2$lead-lineheightLine height for lead paragraph by default.String1.6
3$subheader-lineheightSubheader’s default line height.Number1.4
4$subheader-colorSubheader’s default font color.Color$dark-gray
5$subheader-font-weightSubheader’s default font weight.String$global-weight-normal
6$subheader-margin-topSubheader’s default top margin.Number0.2rem
7$subheader-margin-bottomSubheader’s default bottom margin.Number0.5rem
8$stat-font-sizeStatic number’s default font sizeNumber2.5rem

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *