Skip to content

aggressive color checking #122

Closed
Closed
@MrLoh

Description

@MrLoh

Hi, first of all. Thank you for this library.

I've build a little styled-components replacement for react-native for our company, that adds some features like direct access to theme variables by name.

The heavy lifting is provided by this library. Now in 3a3a596 you made the check for color variables on borderColor much more aggressive. Before it would simply give me an object with whatever I had entered (like a color name from my scheme) and I could then resolve that name to the actual color with my library. Now I get an error.

Is there a chance to allow normal words again as color values, or would you accept a PR that would allow adding valid color values via a configuration function.

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