Bootstrap Helper Classes


In this tutorial you will learn about the Bootstrap helper/utility classes.

Color Classes

You can use the contextual color classes to emphasize the text and convey meaning through color. Here’s the complete list of available contextual color classes.

ClassDescriptionTest
.text-primaryApply blue color (#007bff) on text.Example
.text-secondaryApply grey color (#6c757d) on text.Example
.text-successApply green color (#28a745) on text.Example
.text-dangerApply red color (#dc3545) on text.Example
.text-warningApply yellow color (#ffc107) on text.Example
.text-infoApply teal color (#17a2b8) on text.Example
.text-lightApply very light grey color (#f8f9fa) on text.Example
.text-darkApply dark grey color (#343a40) on text.Example
.text-bodyApply Bootstrap’s default body text color (#212529) on text.Example
.text-mutedApply light grey color (#6c757d) on text.Example
.text-whiteApply white color (#fff) on text.Example
.text-black-50Apply 50% transparent black color (rgba(0,0,0,.5)) on text.Example
.text-white-50Apply 50% transparent white color (rgba(255,255,255,.5)) on text.Example

Leave a Reply

Your email address will not be published. Required fields are marked *