Typography
These modular elements can be readily used and customized in every layout across pages.
Font Family
You have three sets of font-family
available to use.
-
Lato
-
PT Serif
PT Mono
<h6>Lato</h6>
<p>PT Serif</p>
<code>PT Mono</code>
Headings
Sparrow has all the html headings, <h1>
through <h6>
, styled for you. Also you can use .h1
through .h6
classes when you want to match the font styling of a heading but still want your text to be displayed inline.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
Paragraphs
This is a paragraph text. Following text are dummy copy text. Donec feugiat lorem dolor, eu fringilla urna tincidunt quis. In vitae dignissim lectus. Maecenas varius libero non metus rhoncus sagittis. Proin posuere iaculis auctor. Vivamus orci lorem, sollicitudin at convallis in, feugiat eget felis. Integer maximus, metus sit amet imperdiet semper, erat felis vulputate odio, nec malesuada metus.
<p>
Your paragraph text goes here.
</p>
Lead Paragraph and Drop cap
Make a paragraph stand out by adding .lead
and for drop cap, use .dropcap
class.
Aliquam a fermentum tortor, nec fringilla eros. Donec molestie lorem elit, eget eleifend neque dignissim nec. Suspendisse ullamcorper dapibus dolor eget auctor. Etiam tempor dui nec eros blandit tincidunt.
Curabitur ut sapien pretium nulla porttitor porta sit amet eu neque. Nunc nec erat odio. Praesent tristique pulvinar erat, quis cursus sem ultricies sed. Suspendisse ullamcorper dapibus dolor eget auctor. Ut quis egestas nibh. Aliquam a fermentum tortor, nec fringilla eros. Donec molestie lorem elit, eget eleifend neque dignissim nec. Etiam tempor dui nec eros blandit tincidunt.
<p class="dropcap lead">
Your paragraph goes here.
</p>
<p class="lead">
Your paragraph goes here.
</p>
Font styles
Font weights
.font-weight-thin {font-weight: 100 !important;}
.font-weight-extra-light {font-weight: 200 !important;}
.font-weight-light {font-weight: 300 !important;}
.font-weight-normal {font-weight: 400 !important;}
.font-weight-medium {font-weight: 500 !important;}
.font-weight-semi-bold {font-weight: 600 !important;}
.font-weight-bold {font-weight: 700 !important;}
.font-weight-extra-bold {font-weight: 800 !important;}
.font-weight-black {font-weight: 900 !important;}
Colors
Use the folloing classes to change the text color.
.text-primary
.text-info
.text-success
.text-warning
.text-danger
.text-black
.text-dark
.text-1000
.text-900
.text-800
.text-700
.text-600
.text-500
.text-400
.text-300
.text-200
.text-light
.text-white
<h5 class="text-primary">.text-primary</h5>
Sizes
If you want different sizes of fonts, you may use the folloing classes.
.fs--1
.fs-0
.fs-1
.fs-2
.fs-3
.fs-4
.fs-5
.fs-6
.fs-7
.fs-8
<h6 class="fs--1">.fs--1</h6>
<h6 class="fs-0">.fs-0</h6>
Alignments
Left aligned
Pellentesque cursus placerat hendrerit. Donec sed erat nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce vitae consequat erat. Quisque faucibus felis et fringilla imperdiet. Etiam at porttitor elit, quis convallis massa. Ut id risus sapien. Praesent sit amet arcu a eros laoreet facilisis id eget risus.
Right aligned
Pellentesque cursus placerat hendrerit. Donec sed erat nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce vitae consequat erat. Quisque faucibus felis et fringilla imperdiet. Etiam at porttitor elit, quis convallis massa. Ut id risus sapien. Praesent sit amet arcu a eros laoreet facilisis id eget risus.
Center aligned
Pellentesque cursus placerat hendrerit. Donec sed erat nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce vitae consequat erat. Quisque faucibus felis et fringilla imperdiet. Etiam at porttitor elit, quis convallis massa. Ut id risus sapien. Praesent sit amet arcu a eros laoreet facilisis id eget risus.
Justified
Pellentesque cursus placerat hendrerit. Donec sed erat nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce vitae consequat erat. Quisque faucibus felis et fringilla imperdiet. Etiam at porttitor elit, quis convallis massa. Ut id risus sapien. Praesent sit amet arcu a eros laoreet facilisis id eget risus.
<p class="text-left">
Your paragraph goes here.
</p>
<p class="text-right">
Your paragraph goes here.
</p>
<p class="text-center">
Your paragraph goes here.
</p>
<p class="text-justify">
Your paragraph goes here.
</p>
Transformation
Lowercased text
Uppercased text
Capitalized text
<h5 class="text-lowercase">Lowercased text.</h5>
<h5 class="text-uppercase">Uppercased text.</h5>
<h5 class="text-capitalize">Capitalized text.</h5>
Inline styles
Use these tags for inline styling. Feel free to use <b>
and <em>
tags insted of <strong>
and <i>
tags.
Highlight text
Deleted text
Underlined text
Small text
Bold text
Italic text
<mark>mark</mark> text
<del>Deleted text</del>
<u>Underlined text</u>
<small>Small text</small>
<strong>Bold text</strong>
<i>Italic text</i>
Blockquotes
Racing is life, everything before or after is just waiting.”
<blockquote class="blockquote my-5">
<p class="fs-2 text-800 font-italic">Racing is life, everything before or after is just waiting.”</p>
<footer class="blockquote-footer">Frank Zappa</footer>
</blockquote>
Lists
Unordered
A list of items in which the order does not explicitly matter.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Faucibus porta lacus fringilla vel
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Nulla volutpat aliquam velit
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
</ul>
</li>
<li>Faucibus porta lacus fringilla vel</li>
</ul>
Ordered
A list of items in which the order does explicitly matter.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Faucibus porta lacus fringilla vel
<ol>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Nulla volutpat aliquam velit
<ol>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
</ol>
</li>
<li>Faucibus porta lacus fringilla vel</li>
</ol>
No Style
Adding no-style
class to ul
element will produce the following list style:
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Faucibus porta lacus fringilla vel
Styled Checkmark
Adding style-check
class to ul
element will produce the following list style:
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Faucibus porta lacus fringilla vel