Decreases the contrast of a color relative to another color
LESS
// Required arguments @result: -evo-decrease-contrast(@color, @change); // All arguments @result: -evo-decrease-contrast(@color, @change, @complement, @contrastFactor, @threshold);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
color |
| Color to adjust | Required | ||
change |
| Amount to adjust the color proportionally, either a decimal or percent. | Required | ||
complement |
| Color adjustment is performed relative to the complement. The higher the amount, the greater the decrease in contrast, bringing a color closer to the complement. When not provided, either white or black is selected as the complement based on the luminance of the color. | Optional | ||
contrastFactor |
| When provided, adjusts the requested change further, proportionally, either in a positive or negative direction. | Optional | ||
threshold |
| When a complement is not provided, threshold defines the color's luminance at which either white or black is selected as the complement. | Optional | .5 |