diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 89bf16847..eb0cf2b5b 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -110,7 +110,15 @@ $utilities: map-merge( "border-color": ( property: border-color, class: border, - values: map-merge($theme-colors, ("white": $white)) + values: map-merge( + $theme-colors, + ( + "white": $white, + "gray-500": $gray-500, + "gray-700": $gray-700, + "black": $black + ) + ) ), "border-width": ( property: border-width, @@ -473,6 +481,8 @@ $utilities: map-merge( ( "body": $body-bg, "white": $white, + "gray": $gray-400, + "black": black, "transparent": transparent ) ) diff --git a/site/content/docs/5.0/utilities/borders.md b/site/content/docs/5.0/utilities/borders.md index 459ca4e72..467d40886 100644 --- a/site/content/docs/5.0/utilities/borders.md +++ b/site/content/docs/5.0/utilities/borders.md @@ -32,7 +32,7 @@ Use border utilities to add or remove an element's borders. Choose from all bord ## Border color -Change the border color using utilities built on our theme colors. +Change the border color using utilities built on our theme colors. We've also included a subset of our gray colors to provide more flexibility. {{< example class="bd-example-border-utils" >}} {{< border.inline >}} @@ -41,6 +41,18 @@ Change the border color using utilities built on our theme colors. {{- end -}} {{< /border.inline >}} + + + +{{< /example >}} + +The gray `border-color` utilities differ slightly than our `background-color` utilities so that there's some slight contrast between the two. + +{{< example >}} +
+
+
+
{{< /example >}} ## Border-width diff --git a/site/content/docs/5.0/utilities/colors.md b/site/content/docs/5.0/utilities/colors.md index ede13df06..67dec4a2c 100644 --- a/site/content/docs/5.0/utilities/colors.md +++ b/site/content/docs/5.0/utilities/colors.md @@ -43,7 +43,9 @@ Similar to the contextual text color classes, easily set the background of an el
.bg-{{ .name }}
{{- end -}} {{< /colors.inline >}} +
.bg-gray
.bg-white
+
.bg-black
.bg-transparent
{{< /example >}}