Colors and Backgrounds
Use text-* for text color, bg-* for background and text-bg-* for matched pairs. Opacity helpers such as bg-opacity-50 add transparency.
Example
<div class="text-bg-primary p-3">Primary</div>
<div class="bg-success bg-opacity-25 p-3">Soft success</div>Exercise
Background class.
-warningQuiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.