aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaël Poupard <[email protected]>2020-05-19 16:58:20 +0200
committerGaël Poupard <[email protected]>2020-05-20 09:49:18 +0200
commite1f320851a611e57a694fe50f64b2bc611574834 (patch)
tree1373e643401b7904d94bd6bb15652475edc7c436
parentb45a2ab178b26c52b787142bc334d9df1bfd8973 (diff)
downloadbootstrap-e1f320851a611e57a694fe50f64b2bc611574834.tar.xz
bootstrap-e1f320851a611e57a694fe50f64b2bc611574834.zip
docs(customize/sass): dark color-contrast is #212529 as of now
-rw-r--r--site/content/docs/5.0/customize/sass.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/5.0/customize/sass.md b/site/content/docs/5.0/customize/sass.md
index d2f398c8d..1e6808f51 100644
--- a/site/content/docs/5.0/customize/sass.md
+++ b/site/content/docs/5.0/customize/sass.md
@@ -172,7 +172,7 @@ In practice, you'd call the function and pass in two parameters: the name of the
In order to meet [WCAG 2.0 accessibility standards for color contrast](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html), authors **must** provide [a contrast ratio of at least 4.5:1](https://www.w3.org/WAI/WCAG20/quickref/20160105/Overview.php#visual-audio-contrast-contrast), with very few exceptions.
-An additional function we include in Bootstrap is the color contrast function, `color-contrast`. It utilizes the [WCAG 2.0 algorithm](https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests) for calculating contrast thresholds based on [relative luminance](https://www.w3.org/WAI/GL/wiki/Relative_luminance) in a `sRGB` colorspace to automatically return a light (`#fff`), dark (`#111`) or black (`#000`) contrast color based on the specified base color. This function is especially useful for mixins or loops where you're generating multiple classes.
+An additional function we include in Bootstrap is the color contrast function, `color-contrast`. It utilizes the [WCAG 2.0 algorithm](https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests) for calculating contrast thresholds based on [relative luminance](https://www.w3.org/WAI/GL/wiki/Relative_luminance) in a `sRGB` colorspace to automatically return a light (`#fff`), dark (`#212529`) or black (`#000`) contrast color based on the specified base color. This function is especially useful for mixins or loops where you're generating multiple classes.
For example, to generate color swatches from our `$theme-colors` map: