Convey meaning through color with a handful of color utility classes. Includes support for styling links with hover states, too.
Use any of these color variables as they are or reassign them to more meaningful variables for your project.
This is an example for
.text-primary
This is an example for
.text-secondary
This is an example for
.text-success
This is an example for
.text-success
This is an example for
.text-warning
This is an example for
.text-info
This is an example for
.text-body
This is an example for
.text-muted
This is an example for
.text-dark
This is an example for
.text-black-50
This is an example for
.text-white
This is an example for
.text-light
This is an example for
.text-white-50
Grayscale colors provide quick access to commonly used shades of black while semantic include various colors assigned to meaningful contextual values.
This is an example for
.text-gray-100
This is an example for
.text-gray-200
This is an example for
.text-gray-300
This is an example for
.text-gray-400
This is an example for
.text-gray-500
This is an example for
.text-gray-600
This is an example for
.text-gray-700
This is an example for
.text-gray-800
This is an example for
.text-gray-900
Colors are often used for social media.
This is an example for
.text-facebook
This is an example for
.text-twitter
This is an example for
.text-lastfm
This is an example for
.text-pinterest
This is an example for
.text-linkedin
This is an example for
.text-medium
This is an example for
.text-skype
This is an example for
.text-foursquare
This is an example for
.text-android
This is an example for
.text-spotify
This is an example for
.text-youtube
This is an example for
.text-windows
This is an example for
.text-amazon
Contextual text classes also work well on anchors with the provided hover and focus states. Note that the .text-white
and .text-muted
class has no link styling.
This is an example Primary Link
This is an example Secondary Link
This is an example Success Link
This is an example Danger Link
This is an example Warning Link
This is an example Info Link
This is an example Dark Link
This is an example Light Link
All HTML headings, <h1>
through <h6>
, are available.
Just add class/helper .fw-300
to <h1>
- <h6>
.
In the case of Regular is from set as default in scss
.
Just add class/helper .fw-800
to <h1>
- <h6>
.
Use the included utility classes to recreate the small secondary heading text from Bootstrap 3.
Traditional heading elements are designed to work best in the meat of your page content. When you need a heading to stand out, consider using a display heading—a larger, slightly more opinionated heading style.
Documentation and examples for common text utilities to control alignment, wrapping, weight, and more.
Just add class .text-justify
.
Ambitioni dedisse scripsisse iudicaretur. Cras mattis iudicium purus sit amet fermentum. Donec sed odio operae, eu vulputate felis rhoncus. Praeterea iter est quasdam res quas ex communi. At nos hinc posthac, sitientis piros Afros. Petierunt uti sibi concilium totius Galliae in diem certam indicere. Cras mattis iudicium purus sit amet fermentum.
Prevent text from wrapping with a .text-nowrap
class.
Transform text in components with text capitalization classes.
Lowercased text.
Uppercased text.
CapiTaliZed text.
Change a selection to our monospace font stack with .text-monospace
.
This is in monospace
Styling for common inline HTML5 elements.
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.
Add class .text-left
, .text-center
or .text-right
.
Left aligned text on all viewport sizes.
Center aligned text on all viewport sizes.
Right aligned text on all viewport sizes.
For longer content, you can add a .text-truncate
class to truncate the text with an ellipsis. Requires display:
inline-block
or display: block
.
Quickly change the weight (boldness) of text or italicize text.
Bold text.
Normal weight text.
Light weight text.
Italic text.
Make a paragraph stand out by adding .lead
.
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
Add .initialism
to an abbreviation for a slightly smaller font-size.
attr
HTML
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.
Use text utilities as needed to change the alignment of your blockquote.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Add a <footer class="blockquote-footer">
for identifying the source. Wrap the name of the source work in <cite>
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Use text utilities as needed to change the alignment of your blockquote.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
For quoting blocks of content from another source within your document.
Remove the default list-style
and left margin on list items.
Remove a list’s bullets and apply some light margin with a combination of two classes, .list-inline
and .list-inline-item
.
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.
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
Documentation and examples for displaying inline and multiline blocks of code with Bootstrap.
Wrap inline snippets of code with <code>
.
Be sure to escape HTML angle brackets.
For indicating variables use the <var>
tag.
Use the <kbd>
to indicate input that is typically entered via keyboard.
For indicating sample output from a program use the <samp>
tag.
Use <pre>
s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the .pre-scrollable
class, \ which will set a max-height of 340px and provide a y-axis scrollbar.
<p>Sample text here...</p>
<p>And another line of sample text here...</p>