Skip to content

What is the difference between text-body-secondary and text-secondary? #40650

Discussion options

You must be logged in to vote

I've created a CodePen to visualize the differences and serve as a reference.

To display normal text, such as paragraphs, articles, long sections, etc. you’ll typically use .text-body. If you need lighter text, you can use .text-body-secondary, and for even lighter text, .text-body-tertiary. Even if you customize Bootstrap, it's likely that .text-body-* will remain shades of black in light mode.

However, the concepts of primary and secondary colors are different. These terms are used to define your brand’s primary and secondary colors. In Bootstrap, primary is blue, and secondary is black. In my example, if you want to create a tag, you’ll have a primary tag with a subtle primary backgrou…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@carlosmintfan
Comment options

@julien-deramond
Comment options

Answer selected by carlosmintfan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants