Here’s some fake markup hopefully illustrating what I’m trying to do:
The element will pull the element’s background color and darken it by a certain percentage. It will require the ability to expand out to dozens of colors, otherwise I’d just code them in manually. Plus, this is why I’m using LESS. (See, I’m already trying to convince myself it’s worth it.)
How do I define a series of colors for different elements, then darken each one by the same value?
ADDED BONUS: It would be amazing if, say was darker than a certain value, then its font color would lighten, invert, become white, whatever.