Skip to content

make SmartWatch work with transparent and currentColor #38

@georggrubner

Description

@georggrubner

The two values transparent and currentColor are valid css color values and therefore, the SmartWatch component should not fail with a runtime error trying to parse them.

example code:

const calculatedTheme = {
    ...theme,
    colors: {
        ...theme.colors,
        transparent: 'transparent',
        current: 'currentColor',
    },
}

return <ThemeColors theme={calculatedTheme} />

without those two values, it works fine

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