Typography
Text Colors
Standard and custom Bootstrap color utilities:
.text-primary
.text-secondary
.text-success
.text-danger
.text-warning
.text-info
.text-light
.text-dark
.text-dark-75
.text-dark-65
.text-dark-50
.text-dark-25
.text-body
.text-muted
.text-white
.text-white-50
.text-black-50
<p class="text-primary">.text-primary</p>
<p class="text-secondary">.text-secondary</p>
<p class="text-success">.text-success</p>
<p class="text-danger">.text-danger</p>
<p class="text-warning">.text-warning</p>
<p class="text-info">.text-info</p>
<p class="text-light bg-dark">.text-light</p>
<p class="text-dark">.text-dark</p>
<p class="text-dark-75">.text-dark-75</p>
<p class="text-dark-65">.text-dark-65</p>
<p class="text-dark-50">.text-dark-50</p>
<p class="text-dark-25">.text-dark-25</p>
<p class="text-body">.text-body</p>
<p class="text-muted">.text-muted</p>
<p class="text-white bg-dark">.text-white</p>
<p class="text-black-50">.text-black-50</p>
<p class="text-white-50 bg-dark">.text-white-50</p>
Headings
All HTML headings, <h1>
through <h6>
, are available:
h1. Heading 1
h2. Heading 2
h3. Heading 3
h4. Heading 4
h5. Heading 5
h6. Heading 6
<h1>h1. Heading 1</h1>
<h2>h2. Heading 2</h2>
<h3>h3. Heading 3</h3>
<h4>h4. Heading 4</h4>
<h5>h5. Heading 5</h5>
<h6>h6. Heading 6</h6>
<div class="h1">h1. Heading 1</div>
<div class="h2">h2. Heading 2</div>
<div class="h3">h3. Heading 3</div>
<div class="h4">h4. Heading 4</div>
<div class="h5">h5. Heading 5</div>
<div class="h6">h6. Heading 6</div>
Use the included utility classes to recreate the small secondary heading text:
Fancy display heading With faded secondary text
<h3> Fancy display heading <small class="text-muted">With faded secondary text</small> </h3>
Larger, slightly more opinionated heading styles:
Display 1
Display 2
Display 3
Display 4
Display 5
<h3 class="display-1">Display 1</h3>
<h3 class="display-2">Display 2</h3>
<h3 class="display-3">Display 3</h3>
<h3 class="display-4">Display 4</h3>
<h3 class="display-5">Display 5</h3>
Make a paragraph stand out by adding .lead
:
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
<p class="lead">
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.
Duis mollis, est non commodo luctus.</p>
Font Sizes
Use .font-size-{xs|sm|lg|h1|h2|h3|h4|h5|h6}
classes to set required font size.
Extra small size
Small size
Large size
Heading 6 size
Heading 5 size
Heading 4 size
Heading 3 size
Heading 2 size
Heading 1 size
<p class="font-size-xs">Extra small size</p>
<p class="font-size-sm">Small size</p>
<p class="font-size-lg">Large size</p>
<p class="font-size-h6">Heading 6 size</p>
<p class="font-size-h5">Heading 5 size</p>
<p class="font-size-h4">Heading 4 size</p>
<p class="font-size-h3">Heading 3 size</p>
<p class="font-size-h2">Heading 2 size</p>
<p class="font-size-h1">Heading 1 size</p>
Use .font-size-{xs|sm|lg|xl|xxs}-{|h1|h2|h3|h4|h5|h6|}
classes to set responsive font sizes.
H2 Desktop, H4 Mobile
H3 Desktop, H5 Mobile
<p class="font-size-h4 font-size-lg-h2">H2 Desktop, H4 Mobile</p>
<p class="font-size-h5 font-size-lg-h3">H3 Desktop, H5 Mobile</p>
Use .display{1|2|3|4}-{xs|sm|lg|xl|xxs}
classes to set responsive display texts.
Responve Text 1
Responve Text 2
<p class="display3 display4-lg">Responve Text 1</p>
<p class="display2 display3-lg">Responve Text 2</p>
Font Weights
Use .font-weight-{lighter|light|normal|bold|bolder|boldest}
classes to set font weight.
Lighter Text
Light Text
Normal Text
Bold Text
Bolder Text
Boldest Text
<p class="font-weight-lighter">Lighter Text</p>
<p class="font-weight-light">Light Text</p>
<p class="font-weight-normal">Normal Text</p>
<p class="font-weight-bold">Bold Text</p>
<p class="font-weight-bolder">Bolder Text</p>
<p class="font-weight-boldest">Boldest Text</p>
General
Styling for common inline HTML5 elements.
You can use the mark tag to example text.
This line of text is meant to be treated as deleted text.
This line of text is meant to be treated as no longer accurate.
This line of text is meant to be treated as an addition to the document.
This line of text will render as underlined
This line of text is meant to be treated as fine print.
This line rendered as bold text.
This line rendered as italicized text.
<p>You can use the mark tag to <mark>example</mark> text.</p>
<p><del>This line of text is meant to be treated as deleted text.</del></p>
<p><s>This line of text is meant to be treated as no longer accurate.</s></p>
<p><ins>This line of text is meant to be treated as an addition to the document.</ins></p>
<p><u>This line of text will render as underlined</u></p>
<p><small>This line of text is meant to be treated as fine print.</small></p>
<p><strong>This line rendered as bold text.</strong></p>
<p><em>This line rendered as italicized text.</em></p>
Stylized implementation of HTML’s <abbr> element for abbreviations and acronyms to show the expanded version on hover.
attr
HTML
<p><abbr title="attribute">attr</abbr></p>
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr></p>
Links
Links can be easily styles with the Bootstrap color utilities.
<a href="#">Default link</a>
<a href="#" class="text-hover-danger">Link with custom hover color</a>
<a href="#" class="text-warning text-hover-danger">Link with custom default and hover colors</a>
Separators
Use .separator
custom component to have separator line
<div class="separator separator-dashed"></div>
<div class="separator separator-solid">
</div>
Use .separator-{border-2|border-3|border-4}
classes to set separator sizes.
<div class="separator separator-dashed separator-border-2"></div>
<div class="separator separator-solid separator-border-2"></div>
<div class="separator separator-dashed separator-border-3"></div>
<div class="separator separator-solid separator-border-3"></div>
<div class="separator separator-dashed separator-border-4"></div>
<div class="separator separator-solid separator-border-4"></div>
Use .separator-{color}
classe to set separator colors.
<div class="separator separator-dashed separator-border-2 separator-primary"></div>
<div class="separator separator-solid separator-border-2 separator-success"></div>
<div class="separator separator-dashed separator-border-2 separator-danger"></div>
<div class="separator separator-solid separator-border-2 separator-warning"></div>
<div class="separator separator-dashed separator-border-2 separator-info"></div>
<div class="separator separator-solid separator-border-2 separator-dark"></div>
Blockquotes
For quoting blocks of content from another source within your document. Wrap <blockquote class="blockquote">
around any HTML as the quote.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
<blockquote class="blockquote">
<p class="mb-0">Lorem ipsum dolor sit amet. Integer posuere erat a ante.</p>
</blockquote>
Format for naming a source
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
<blockquote class="blockquote">
<p class="mb-0">Lorem ipsum dolor sit amet.</p>
<footer class="blockquote-footer">Someone famous in
<cite title="Source Title">Source Title</cite>
</footer>
</blockquote>
Use .text-center
to align blockquote to center.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
<blockquote class="blockquote text-center">
<p class="mb-0">Lorem ipsum dolor sit amet.</p>
<footer class="blockquote-footer">Someone famous in
<cite title="Source Title">Source Title</cite>
</footer>
</blockquote>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
<blockquote class="blockquote text-right">
<p class="mb-0">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<footer class="blockquote-footer">Someone famous in
<cite title="Source Title">Source Title</cite>
</footer>
</blockquote>
Lists
Remove the default list-style and left margin on list items (immediate children only).
- Lorem ipsum dolor sit amet
-
Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Aenean sit amet erat nunc
- Eget porttitor lorem
<ul class="list-unstyled">
<li>Lorem ipsum dolor sit amet</li>
<li>Nulla volutpat aliquam velit
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
</ul>
</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ul>
Remove bullets from lists and apply some light margin with a combination of two classes, .list-inline
and .list-inline-item.
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
<ul class="list-inline">
<li class="list-inline-item">Lorem ipsum</li>
<li class="list-inline-item">Phasellus iaculis</li>
<li class="list-inline-item">Nulla volutpat</li>
</ul>