Hướng dẫn text color bootstrap 5
ColorsColorize text with color utilities. If you want to colorize links, you can use the .text-primary .text-secondary .text-success .text-danger .text-warning .text-info .text-light .text-dark .text-body .text-muted .text-white .text-black-50 .text-white-50
Conveying meaning to assistive technologiesUsing color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the
SpecificitySometimes contextual classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element’s content in a In addition to the following Sass functionality, consider reading about our included CSS
custom properties (aka CSS variables) for colors and more. Most Grayscale colors are also available, but only a subset are used to generate any utilities. Theme colors are then put into a Sass map so we can loop over them to generate our utilities, component
modifiers, and more. Grayscale colors are also available as a Sass map. This map is not used to generate any utilities. Color utilities are declared in our utilities API in |