Adjusts the contrast of a color relative to another color
LESS
// Required arguments @result: -evo-contrast(@color, @change); // All arguments @result: -evo-contrast(@color, @change, @complement, @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 from -100% to 100%. | Required | ||
complement |
| Color adjustment is performed relative to the complement. A decrease (negative) contrast adjustment brings a color closer to the complement, whereas an increase (positive) adjustment adjusts it furhter away. When not provided, either white or black is selected as the complement based on the luminance of the color. | 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 |