csstools/postcss-color-mod-function

Doesn't handle transparent as a color

feimosi opened this issue · 2 comments

I'm generating themes dynamically with PostCSS. Sometimes I have to use a transparent color to hide some part e.g. border

border-color: color-mod($border shade(10%));
// resolved to:
border-color: color-mod(transparent shade(10%));

but it fails inside the code-mod with the following error:

Module build failed: Syntax Error                               
                                                                
(11:29) Expected a color                                        

Thanks for reporting this, @feimosi. It’s been fixed in 3.0.1! 🎉

Thanks a lot! 🎉