Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make SmartWatch work with transparent and currentColor #38

Open
georggrubner opened this issue Mar 3, 2021 · 0 comments
Open

make SmartWatch work with transparent and currentColor #38

georggrubner opened this issue Mar 3, 2021 · 0 comments

Comments

@georggrubner
Copy link

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

@okonet okonet transferred this issue from component-driven/react-design-tokens Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant