Typography
Font size
Use the .fs-1
- .fs-10
to set an explicit font-size.
Class | Small screen size font-size | Large screen size font-size |
---|---|---|
.fs-1 | 9px | 10px |
.fs-2 | 11px | 12px |
.fs-3 | 12px | 14px |
.fs-4 | 14px | 16px |
.fs-5 | 16px | 18px |
.fs-6 | 18px | 24px |
.fs-7 | 24px | 32px |
.fs-8 | 32px | 38px |
.fs-9 | 38px | 42px |
.fs-10 | 42px | 48px |
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
<p class="fs-1">Font size 1</p><p class="fs-2">Font size 2</p><p class="fs-3">Font size 3</p><p class="fs-4">Font size 4</p><p class="fs-5">Font size 5</p><p class="fs-6">Font size 6</p><p class="fs-7">Font size 7</p><p class="fs-8">Font size 8</p><p class="fs-9">Font size 9</p><p class="fs-10">Font size 10</p>
Font weight
Use the .fw-300
- .fw-700
to set an explicit font-size.
Font weight 300
Font weight 400
Font weight 500
Font weight 700
<p class="fw-300">Font weight 300</p><p class="fw-400">Font weight 400</p><p class="fw-500">Font weight 500</p><p class="fw-700">Font weight 700</p>
Line height
Use the lh-
classes to explicitly apply line height to text.
Class | line-height value | Notes |
---|---|---|
.lh-0 | 0 | |
.lh-tight | 1.1 | Default for headings |
.lh-default | 1.4 | Default 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 `<span>` wrapper to apply custom classes:No Line height<p class="lh-0">No Line height</p>Tight line height<p class="lh-tight">Tight line height</p>Default line height<p class="fh-default">Default line height</p>
Text justification
By default text is justified left. Use these text-
classes to override settings:
Class | What it does |
---|---|
.text-left | text-align: left |
.text-right | text-align: right |
.text-center | text-align: center |