In pure CSS you can use
currentColor
wherever you migth use a normal color value. This maps to whatever the current value of color is.
Go ahead, stick
currentColor
in gradients and backgrounds. It’s already the default for text, borders, and drop shadows so you don’t even need to define current color there.