#demo-element {
background: @theme-color;
color: contrast(@theme-color, black, white, 50%);
}
@theme-color: red;
The above example will set the text color of the element as white if the background-color is dark and vice-versa. This is achieved using the contrast() color operation functi...