With Twitter Bootstrap, how can I customize the h1 text color of one page and leave the other pages to be default?

tom picture tom · Jun 22, 2012 · Viewed 111k times · Source

On my index page, I want the h1 text color to be white and comes with shadow, but I don't want to change the default behavior the h1 on other pages. How can I achieve this?

Answer

Connor Leech picture Connor Leech · Oct 17, 2013

in bootstrap 3 here are the classes to change the text color:

<p class="text-muted">...</p> //grey
<p class="text-primary">...</p> //light blue
<p class="text-success">...</p> //green
<p class="text-info">...</p> //blue
<p class="text-warning">...</p> //orangish,yellow
<p class="text-danger">...</p> //red

Documentation under Helper classes - Contextual colors.