From 17bb67dd5b9776ec08cd838dee9fb2203c8b8da1 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 10 Dec 2020 01:01:13 -0800 Subject: [PATCH] Add hex values to colors (#32411) --- site/content/docs/4.5/getting-started/theming.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/site/content/docs/4.5/getting-started/theming.md b/site/content/docs/4.5/getting-started/theming.md index 7e942001700d..51e852ccac11 100644 --- a/site/content/docs/4.5/getting-started/theming.md +++ b/site/content/docs/4.5/getting-started/theming.md @@ -301,7 +301,10 @@ All colors available in Bootstrap 4, are available as Sass variables and a Sass {{- range $.Site.Data.colors }} {{- if (and (not (eq .name "white")) (not (eq .name "gray")) (not (eq .name "gray-dark"))) }}
-
{{ .name | title }}
+
+ ${{ .name }} + {{ .hex }} +
{{ end -}} {{ end -}} @@ -332,7 +335,10 @@ 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 }} + {{ .hex }} +
{{ end -}} {{< /theme-colors.inline >}} @@ -346,7 +352,10 @@ An expansive set of gray variables and a Sass map in `scss/_variables.scss` for
{{< theme-colors.inline >}} {{- range $.Site.Data.grays }} -
{{ .name | title }}
+
+ $gray-{{ .name }} + {{ .hex }} +
{{ end -}} {{< /theme-colors.inline >}}