Brightness filter as a generic highlight
Writing on his weblog, Rick Strahl describes years of hand-rolled button-like CSS: images, backgrounds, gradients and opacity have all served as ways to "highlight" a control.
"All that works of course, but the problem with most of these approaches is that one way or the other you're hard coding a color value, image, or gradient."
Trading exact colors for less maintenance
Explicit color values give more control, Strahl acknowledges. But if brightening, darkening or a hue shift can be made to feel cohesive across a site, the code is considerably easier to maintain.



