is possible set color based on lightness/darkness of less variable?
currently have following code:
li { color: darken(@bodybackground, 10%); } this works providing @bodybackground light color. if dark color i'd use lighten(@bodybackground, 10%). possible less?
there's contrast function, e.g.:
li { color: contrast(@bodybackground, lighten(@bodybackground, 13%), darken(@bodybackground, 13%)); }
Comments
Post a Comment