diff options
| author | Mark Otto <[email protected]> | 2020-06-19 21:29:20 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-20 07:29:20 +0300 |
| commit | 806f64e162d80e64257eb325daf3867d0ff52770 (patch) | |
| tree | 8626709b7c7353b2a0292fd9c8dc1489141f7073 | |
| parent | 9ca811eed5939f99cf5f71eb7a29141e878cf9f8 (diff) | |
| download | bootstrap-806f64e162d80e64257eb325daf3867d0ff52770.tar.xz bootstrap-806f64e162d80e64257eb325daf3867d0ff52770.zip | |
Correctly document how to add to Sass maps (#31107)
Fixes #31089.
Co-authored-by: XhmikosR <[email protected]>
| -rw-r--r-- | site/content/docs/5.0/customize/sass.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/site/content/docs/5.0/customize/sass.md b/site/content/docs/5.0/customize/sass.md index 1e6808f51..92f2e6001 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 |
