diff --git a/site/content/docs/5.0/components/badge.md b/site/content/docs/5.0/components/badge.md index 78bc89f5b1..44c85d7179 100644 --- a/site/content/docs/5.0/components/badge.md +++ b/site/content/docs/5.0/components/badge.md @@ -45,7 +45,7 @@ Use our background utility classes to quickly change the appearance of a badge. {{< example >}} {{< badge.inline >}} {{- range (index $.Site.Data "theme-colors") }} -{{ .name | title }}{{- end -}} +{{ .name | title }}{{- end -}} {{< /badge.inline >}} {{< /example >}} @@ -60,6 +60,6 @@ Use the `.rounded-pill` utility class to make badges more rounded with a larger {{< example >}} {{< badge.inline >}} {{- range (index $.Site.Data "theme-colors") }} -{{ .name | title }}{{- end -}} +{{ .name | title }}{{- end -}} {{< /badge.inline >}} {{< /example >}} diff --git a/site/content/docs/5.0/components/card.md b/site/content/docs/5.0/components/card.md index cb25187bd1..5eeeaf56f7 100644 --- a/site/content/docs/5.0/components/card.md +++ b/site/content/docs/5.0/components/card.md @@ -422,7 +422,7 @@ Use [text and background utilities]({{< docsref "/utilities/colors" >}}) to chan {{< example >}} {{< card.inline >}} {{- range (index $.Site.Data "theme-colors") }} -
+
Header
{{ .name | title }} card title
@@ -446,7 +446,7 @@ Use [border utilities]({{< docsref "/utilities/borders" >}}) to change just the {{- range (index $.Site.Data "theme-colors") }}
Header
-
+
{{ .name | title }} card title

Some quick example text to build on the card title and make up the bulk of the card's content.

diff --git a/site/content/docs/5.0/customize/color.md b/site/content/docs/5.0/customize/color.md index 17e41f6e4f..452b3d77cf 100644 --- a/site/content/docs/5.0/customize/color.md +++ b/site/content/docs/5.0/customize/color.md @@ -14,7 +14,7 @@ We use a subset of all colors to create a smaller color palette for generating c {{< theme-colors.inline >}} {{- range (index $.Site.Data "theme-colors") }}
-
{{ .name | title }}
+
{{ .name | title }}
{{ end -}} {{< /theme-colors.inline >}} diff --git a/site/content/docs/5.0/utilities/colors.md b/site/content/docs/5.0/utilities/colors.md index 65cddd75cb..ede13df065 100644 --- a/site/content/docs/5.0/utilities/colors.md +++ b/site/content/docs/5.0/utilities/colors.md @@ -23,7 +23,7 @@ Colorize text with color utilities. If you want to colorize links, you can use t {{< example >}} {{< colors.inline >}} {{- range (index $.Site.Data "theme-colors") }} -

.text-{{ .name }}

+

.text-{{ .name }}

{{- end -}} {{< /colors.inline >}}

.text-body

@@ -40,7 +40,7 @@ Similar to the contextual text color classes, easily set the background of an el {{< example >}} {{< colors.inline >}} {{- range (index $.Site.Data "theme-colors") }} -
.bg-{{ .name }}
+
.bg-{{ .name }}
{{- end -}} {{< /colors.inline >}}
.bg-white
@@ -56,7 +56,7 @@ Do you need a gradient in your custom CSS? Just add `background-image: var(--bs- {{< markdown >}} {{< colors.inline >}} {{- range (index $.Site.Data "theme-colors") }} -
.bg-{{ .name }}.bg-gradient
+
.bg-{{ .name }}.bg-gradient
{{- end -}} {{< /colors.inline >}} {{< /markdown >}} diff --git a/site/data/theme-colors.yml b/site/data/theme-colors.yml index 44431943ec..cca98e7823 100644 --- a/site/data/theme-colors.yml +++ b/site/data/theme-colors.yml @@ -8,9 +8,12 @@ hex: "#dc3545" - name: warning hex: "#ffc107" + contrast_color: dark - name: info hex: "#17a2b8" + contrast_color: dark - name: light hex: "#f8f9fa" + contrast_color: dark - name: dark hex: "#343a40"