Skip to content

Commit

Permalink
docs(customize/colors): dump grays swatches (unused) and merge -500 i…
Browse files Browse the repository at this point in the history
…n swatches
  • Loading branch information
ffoodd committed May 19, 2020
1 parent 0451406 commit df87acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions site/assets/scss/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Docs color palette classes
//

@each $color, $value in $colors {
@each $color, $value in map-merge($colors, ("gray-500": $gray-500)) {
.swatch-#{$color} {
color: color-contrast($value);
background-color: #{$value};
Expand Down Expand Up @@ -40,13 +40,6 @@
}
}

@each $color, $value in $grays {
.swatch-#{$color} {
color: color-contrast($value);
background-color: #{$value};
}
}

// stylelint-disable declaration-block-single-line-max-declarations

.bd-blue-100 { color: color-contrast($blue-100); background-color: $blue-100; }
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.0/customize/color.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Be sure to monitor contrast ratios as you customize colors. As shown below, we'v
{{ end -}}

<div class="col-md-4 mb-3">
<div class="p-3 mb-2 bd-gray-500">
<div class="p-3 mb-2 position-relative swatch-gray-500">
<strong class="d-block">$gray-500</strong>
#adb5bd
</div>
Expand Down

0 comments on commit df87acd

Please sign in to comment.