Link Search Menu Expand Document

Typography Utilities

Table of contents

  1. Font size
    1. Global font size adjustments
  2. Font weight
  3. Line height
  4. Text justification

Font size

Use the .fs-1 - .fs-10 to set an explicit font-size.

ClassSmall screen size font-sizeLarge screen size font-size
.fs-19px10px
.fs-212px14px
.fs-314px16px
.fs-416px18px
.fs-518px20px
.fs-620px22px
.fs-722px24px
.fs-824px30px
.fs-930px32px
.fs-1038px44px

Font size 1

Font size 2

Font size 3

Font size 4

Font size 5

Font size 6

Font size 7

Font size 8

Font size 9

Font size 10

In Markdown, use the `{: }` wrapper to apply custom classes:

Font size 1
{: .fs-1 }
Font size 2
{: .fs-2 }
Font size 3
{: .fs-3 }
Font size 4
{: .fs-4 }
Font size 5
{: .fs-5 }
Font size 6
{: .fs-6 }
Font size 7
{: .fs-7 }
Font size 8
{: .fs-8 }
Font size 9
{: .fs-9 }
Font size 10
{: .fs-10 }

Global font size adjustments

There are a series of variables that can be set in the theme’s color scheme file that allow for the global override of font sizes for specific elements. Using the fs-x system of size specifications (outlined above), the elements will size dynamically, based on the viewing device’s browser width.

Variable nameDefault size assignment
$body-font-sizefs-4
$h1-font-sizefs-9
$h2-font-sizefs-7
$h3-font-sizefs-4
$h4-font-sizefs-2
$h5-font-sizefs-3
$h6-font-sizefs-2
$text-small-font-sizefs-2
In the color scheme file, overrides would be assigned like so:

$body-font-size: fs-3;
$h2-font-size: fs-8;

Font weight

Use the .fw-300 - .fw-700 to set an explicit font-weight.

Font weight 300

Font weight 400

Font weight 500

Font weight 700

In Markdown, use the `{: }` wrapper to apply custom classes:

Font weight 300
{: .fw-300 }
Font weight 400
{: .fw-400 }
Font weight 500
{: .fw-500 }
Font weight 700
{: .fw-700 }

Line height

Use the lh- classes to explicitly apply line height to text.

Classline-height valueNotes
.lh-00 
.lh-tight1.1Default for headings
.lh-default1.4Default for body (paragraphs)

No Line height No Line height

Tight line height Tight line height

Default line height Default line height

In Markdown, use the `{: }` wrapper to apply custom classes:

No Line height
No Line height
{: .lh-0 }

Tight line height
Tight line height
{: .lh-tight }

Default line height
Default line height
{: .fh-default }

Text justification

By default text is justified left. Use these text- classes to override settings:

ClassWhat it does
.text-lefttext-align: left
.text-righttext-align: right
.text-centertext-align: center