1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Remove unnecessary comma in 'All colors' (#30010)

* Remove unnecessary comma in 'All colors'

(Using a comma between a subject and predicate)[https://en.wikipedia.org/wiki/Comma#Between_the_subject_and_predicate] is nonstandard.

* Update theming.md

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Ty Mick 2020-01-16 01:46:42 -06:00 committed by XhmikosR
parent a79a83e7c4
commit 430c16dfac

View file

@ -280,7 +280,7 @@ Many of Bootstrap's various components and utilities are built through a series
### All colors
All colors available in Bootstrap 5, are available as Sass variables and a Sass map in `scss/_variables.scss` file. To avoid increased file sizes, we do not create classes for each of these variables.
All colors available in Bootstrap 5 are available as Sass variables and as a Sass map in `scss/_variables.scss`. To avoid increased file sizes, we do not create classes for each of these variables.
Sass cannot programmatically generate variables, so we must manually create them ourselves. We specify the midpoint value (`500`) and use custom color functions to tint (lighten) or shade (darken) our colors via Sass's `mix()` color function. Using `mix()` is not the same as `lighten()` and `darken()`—the former blends the specified color with white or black, while the latter only adjusts the lightness value of each color. The result is a much more complete suite of colors, as [shown in this CodePen demo](https://codepen.io/emdeoh/pen/zYOQOPB).