An easy notation for grayscale colors


See: & vote! (ideally, with justification) :smile:


Done. I voted for extending rgb(a). The explicit ones, gray, white and black are all ambiguous names (why does white(0) result in black?) Other methods could be defined, yes, but looking at how well the #123 short form of #112233 works, a shortcut for rgb(a) seems the perfect way to go.


Bit off-topic, but somehow relevant: A nice advantage of overloading rgba():

rgba(currentColor, .5)

would then be easier to spec, too.


Thatโ€™s handled by the specced color() function, like color(currentcolor a(.5)).


TIL about color(). Thanks!