Increases the contrast of a color relative to another color
LESS
// Required arguments @result: -evo-increase-contrast(@color, @change); // All arguments @result: -evo-increase-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 increase in contrast, bringing a color further away from 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 |