From: Mark Otto Date: Sat, 20 Jun 2020 04:29:20 +0000 (-0700) Subject: Correctly document how to add to Sass maps (#31107) X-Git-Tag: v5.0.0-alpha2~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=806f64e162d80e64257eb325daf3867d0ff52770;p=thirdparty%2Fbootstrap.git Correctly document how to add to Sass maps (#31107) Fixes #31089. Co-authored-by: XhmikosR --- diff --git a/site/content/docs/5.0/customize/sass.md b/site/content/docs/5.0/customize/sass.md index 1e6808f514..92f2e60015 100644 --- a/site/content/docs/5.0/customize/sass.md +++ b/site/content/docs/5.0/customize/sass.md @@ -110,12 +110,16 @@ $theme-colors: ( ### Add to map -To add a new color to `$theme-colors`, add the new key and value: +Add new colors to `$theme-colors`, or any other map, by creating a new Sass map with your custom values and merging it with the original map. In this case, we'll create a new `$custom-colors` map and merge it with `$theme-colors`. {{< highlight scss >}} -$theme-colors: ( +// Create your own map +$custom-colors: ( "custom-color": #900 ); + +// Merge the maps +$theme-colors: map-merge($theme-colors, $custom-colors); {{< /highlight >}} ### Remove from map