diff --git a/docs/4.0/utilities/colors.md b/docs/4.0/utilities/colors.md index 57afcc6ea5..13c0adc8a1 100644 --- a/docs/4.0/utilities/colors.md +++ b/docs/4.0/utilities/colors.md @@ -8,26 +8,26 @@ toc: true {% example html %} {% for color in site.data.theme-colors %} -

.text-{{ color.name }}

{% endfor %} +

.text-{{ color.name }}

{% endfor %}

.text-muted

-

.text-white

+

.text-white

{% endexample %} -Contextual text classes also work well on anchors with the provided hover and focus states. **Note that the `.text-white` class has no link styling.** +Contextual text classes also work well on anchors with the provided hover and focus states. **Note that the `.text-white` and `.text-muted` class has no link styling.** {% example html %} {% for color in site.data.theme-colors %} -

{{ color.name | capitalize }} link

{% endfor %} +

{{ color.name | capitalize }} link

{% endfor %}

Muted link

-

White link

+

White link

{% endexample %} Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Background utilities **do not set `color`**, so in some cases you'll want to use `.text-*` utilities. {% example html %} {% for color in site.data.theme-colors %} -
.bg-{{ color.name }}
{% endfor %} -
.bg-white
+
.bg-{{ color.name }}
{% endfor %} +
.bg-white
{% endexample %} {% callout info %}