postcss / postcss-color-function

PostCSS plugin to transform W3C CSS color function to more compatible CSS
MIT License
323 stars 31 forks source link

Should this support linear gradients? #47

Closed reinalockheart closed 6 years ago

reinalockheart commented 6 years ago

Would you expect these color functions to work with linear-gradients? For example, I'd expect this to tint the entire gradient, but it seems to not work that way.

--gradient: linear-gradient(90deg, #00C0FF 0%, #FFCF00 49%, #FC4F4F 100%); --gradient-hover: color(var(--gradient) tint(20%));

reinalockheart commented 6 years ago

I guess you could tint the colors in this. It's obvious now, my bad.