Skip to content

Doesn't handle transparent as a color #23

Closed
@feimosi

Description

@feimosi

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                                        

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions