Typography
Font Family
Body Font Family
Aa
Font Family
"Inter", sans-serif
Heading Font Family
Aa
Font Family
"Inter", sans-serif
Headings
All HTML headings, <h1>
through <h6>
, are available.
h1. Bootstrap heading Semibold 2.03125rem (32.5px)
h2. Bootstrap heading Semibold 1.625rem (26px)
h3. Bootstrap heading Semibold 1.42188rem (22.8px)
h4. Bootstrap heading Semibold 1.21875rem (19.5px)
h5. Bootstrap heading Semibold 1.01563rem (16.25px)
h6. Bootstrap heading Semibold 0.8125rem (13px)
HTML Preview
<!-- Headings --> <h1 class="mb-3">h1. Bootstrap heading <small class="text-muted">Semibold 2.03125rem (32.5px)</small></h1>
<h2 class="mb-3">h2. Bootstrap heading <small class="text-muted">Semibold 1.625rem (26px)</small></h2>
<h3 class="mb-3">h3. Bootstrap heading <small class="text-muted">Semibold 1.42188rem (22.8px)</small></h3>
<h4 class="mb-3">h4. Bootstrap heading <small class="text-muted">Semibold 1.21875rem (19.5px)</small></h4>
<h5 class="mb-3">h5. Bootstrap heading <small class="text-muted">Semibold 1.01563rem (16.25px)</small></h5>
<h6 class="mb-1">h6. Bootstrap heading <small class="text-muted">Semibold 0.8125rem (13px)</small></h6>
Display Headings
Traditional heading elements are designed to work best in the meat of your page content.
Display 1
Display 2
Display 3
Display 4
Display 5
Display 6
HTML Preview
<!-- Display Headings --> <h1 class="display-1">Display 1</h1>
<h1 class="display-2">Display 2</h1>
<h1 class="display-3">Display 3</h1>
<h1 class="display-4">Display 4</h1>
<h1 class="display-5">Display 5</h1>
<h1 class="display-6">Display 6</h1>
Blockquotes
Use <blockquote class="blockquote">
class for quoting blocks of content from another source within your document .
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
HTML Preview
<!-- Blockquotes --> <blockquote class="blockquote fs-md"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <footer class="blockquote-footer mt-0">Someone famous in <cite title="Source Title">Source Title</cite></footer> </blockquote>
<blockquote class="blockquote blockquote-reverse fs-md"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <footer class="blockquote-footer mt-0">Someone famous in <cite title="Source Title">Source Title</cite></footer> </blockquote>
Blockquote Background Color
Use blockquote-
class with the below-mentioned color variation to set the blockquote background color.
Custom Blockquote Primary Example
Custom Blockquote Secondary Example
Custom Blockquote Success Example
Custom Blockquote Info Example
Custom Blockquote Danger Example
Custom Blockquote Warning Example
Custom Blockquote Dark Example
HTML Preview
<!-- Blockquote Background Color --> <blockquote class="blockquote custom-blockquote blockquote-primary rounded mb-0"> <p class="mb-2">Custom Blockquote Primary Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-secondary rounded mb-0"> <p class="mb-2">Custom Blockquote Secondary Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-success rounded mb-0"> <p class="mb-2">Custom Blockquote Success Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-info rounded mb-0"> <p class="mb-2">Custom Blockquote Info Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-danger rounded mb-0"> <p class="mb-2">Custom Blockquote Danger Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-warning rounded mb-0"> <p class="mb-2">Custom Blockquote Warning Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-dark rounded mb-0"> <p class="mb-2">Custom Blockquote Dark Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
Blockquote Border Color
Use blockquote-outline
class to set blockquote border color.
Custom Blockquote Outline Primary Example
Custom Blockquote Outline Secondary Example
Custom Blockquote Outline Success Example
Custom Blockquote Outline Info Example
Custom Blockquote Outline Danger Example
Custom Blockquote Outline Warning Example
Custom Blockquote Outline Dark Example
HTML Preview
<!-- Blockquote Border Color --> <blockquote class="blockquote custom-blockquote blockquote-outline blockquote-primary rounded mb-0"> <p class="mb-2">Custom Blockquote Outline Primary Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-outline blockquote-secondary rounded mb-0"> <p class="mb-2">Custom Blockquote Outline Secondary Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-outline blockquote-success rounded mb-0"> <p class="mb-2">Custom Blockquote Outline Success Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-outline blockquote-info rounded mb-0"> <p class="mb-2">Custom Blockquote Outline Info Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-outline blockquote-danger rounded mb-0"> <p class="mb-2">Custom Blockquote Outline Danger Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-outline blockquote-warning rounded mb-0"> <p class="mb-2">Custom Blockquote Outline Warning Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
<blockquote class="blockquote custom-blockquote blockquote-outline blockquote-dark rounded mb-0"> <p class="mb-2">Custom Blockquote Outline Dark Example</p> <footer class="blockquote-footer mt-0">Angie Burt <cite title="Source Title">Designer</cite></footer> </blockquote>
Inline Text Elements
Styling for inline HTML5 elements.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.
You can use the mark tag to highlight 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.
HTML Preview
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
<p>You can use the mark tag to <mark>highlight</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>
Unstyled List
Use list-unstyled
class Remove the default list-style and left margin on list
items (immediate children only). This only applies to immediate
children list items, meaning you will need to add the class
for any nested lists.
- Integer molestie lorem at massa
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Faucibus porta lacus fringilla vel
HTML Preview
<ul class="list-unstyled">
<li>Integer molestie lorem at massa</li>
<li>Nulla volutpat aliquam velit
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
<li>Vestibulum laoreet porttitor sem</li>
</ul>
</li>
<li>Faucibus porta lacus fringilla vel</li>
</ul>
Inline List
Use list-inline
and
list-inline-item
class combination to remove a list’s bullets and apply some light margin.
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
HTML Preview
<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>
Description List Alignment
Align terms and descriptions
horizontally by using our grid system’s predefined classes (or semantic
mixins). For longer terms, you can optionally add a .text-truncate
class to
truncate the text with an ellipsis.
- Description lists
- A description list is perfect for defining terms.
- Euismod
- Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
- Donec id elit non mi porta gravida at eget metus.
- Malesuada porta
- Etiam porta sem malesuada magna mollis euismod.
- Truncated term is truncated
- Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
- Nesting
-
- Nested definition list
- Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.
HTML Preview
<dl class="row mb-0">
<dt class="col-sm-3">Description lists</dt>
<dd class="col-sm-9">A description list is perfect for defining terms.</dd>
<dt class="col-sm-3">Euismod</dt>
<dd class="col-sm-9">Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
<dd class="col-sm-9 offset-sm-3">Donec id elit non mi porta gravida at eget metus.</dd>
<dt class="col-sm-3">Malesuada porta</dt>
<dd class="col-sm-9">Etiam porta sem malesuada magna mollis euismod.</dd>
<dt class="col-sm-3 text-truncate">Truncated term is truncated</dt>
<dd class="col-sm-9">Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
<dt class="col-sm-3">Nesting</dt>
<dd class="col-sm-9 mb-0">
<dl class="row mb-0">
<dt class="col-sm-4">Nested definition list</dt>
<dd class="col-sm-8">Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.</dd>
</dl>
</dd>
</dl>
Text Wrapping and Overflow
Use text-wrap
class to wrap the text.
Use text-nowrap
class to prevent text from wrapping.
HTML Preview
<!-- Text Wrap --> <div class="badge bg-primary text-wrap" style="width: 6rem;"> This text should wrap. </div>
<!-- Text nowrap --> <div class="text-nowrap border bg-light mt-3" style="width: 8rem;"> This text should overflow the parent. </div>
Word Break
Use text-break
class to prevent long strings of text from breaking your components' layout.
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
HTML Preview
<p class="text-break mb-0">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>;
Font size
Use fs-1
, fs-2
, fs-3
, fs-4
, fs-5
, or fs-6
, class to change the font-size respectively.
.fs-1 text
.fs-2 text
.fs-3 text
.fs-4 text
.fs-5 text
.fs-6 text
HTML Preview
<p class="fs-1">.fs-1 text</p>
<p class="fs-2">.fs-2 text</p>
<p class="fs-3">.fs-3 text</p>
<p class="fs-4">.fs-4 text</p>
<p class="fs-5">.fs-5 text</p>
<p class="fs-6">.fs-6 text</p>
Font weight and italics
Use fst-
with modifier class to change font-style and Use fw-
with modifier class to change font-weight.
Bold text.
Bolder weight text (relative to the parent element).
Semibold weight text.
Normal weight text.
Light weight text.
Lighter weight text (relative to the parent element).
Italic text.
Text with normal font style
HTML Preview
<p class="fw-bold">Bold text.</p>
<p class="fw-bolder">Bolder weight text (relative to the parent element).</p>
<p class="fw-normal">Normal weight text.</p>
<p class="fw-light">Light weight text.</p>
<p class="fw-lighter">Lighter weight text (relative to the parent element).</p>
<p class="fst-italic">Italic text.</p>
<p class="fst-normal mb-0">Text with normal font style</p>
Line height
Use lh-
with modifier class to change the line height of an element.
This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.
This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.
This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element.
This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element.
HTML Preview
<p class="lh-1">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.</p>
<p class="lh-sm">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.</p>
<p class="lh-base">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element.</p>
<p class="lh-lg mb-0">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element.</p>
Text Transform
Use text-lowercase
, text-uppercase
, or text-capitalize
to transform the text.
Lowercased text.
Uppercased text.
CapiTaliZed text.
HTML Preview
<p class="text-lowercase">Lowercased text.</p>
<p class="text-uppercase">Uppercased text.</p>
<p class="text-capitalize mb-0">CapiTaliZed text.</p>
Text Decoration
Use text-decoration-underline
, text-decoration-line-through
, or text-decoration-none
class to decorate text in components respectively.
This text has a line underneath it.
This text has a line going through it.
This link has its text decoration removedHTML Preview
<p class="text-decoration-underline">This text has a line underneath it.</p>
<p class="text-decoration-line-through">This text has a line going through it.</p>
<a href="#" class="text-decoration-none">This link has its text decoration removed</a>
Text Truncation
Use text-truncate
class to truncate the text with an ellipsis. Requires display: inline-block
or display: block
.
HTML Preview
<!-- Block level --> <div class="row"> <div class="col-2 text-truncate"> This text is quite long, and will be truncated once displayed. </div> </div>
<!-- Inline level --> <span class="d-inline-block text-truncate" style="max-width: 150px;"> This text is quite long, and will be truncated once displayed. </span>
Visibility
Use visible
or invisible
class to show or to hide elements respectively.
HTML Preview
<div class="visible">text visible Lorem ipsum dolor sit amet</div>
<div class="invisible">text invisible Lorem ipsum dolor sit amet</div>
Clearfix
Use clearfix
class to clear/set floated content within a container.
HTML Preview
<div class="bg-light clearfix">
<button type="button" class="btn btn-secondary float-start">Example Button floated left</button>
<button type="button" class="btn btn-secondary float-end">Example Button floated right</button>
</div>