smooth-code / smooth-ui

Modern React UI library 💅👩‍🎤🍭

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using custom theme colors in ThemeProps

tfriem opened this issue · comments

When adding a new color to a theme, it's not possible to use it in props like backgroundColor. Using it with the variant prop or inside the th() function with styled seems to work fine.

Did I hit a bug or is there a reason for this behavior?

Example: https://codesandbox.io/s/ql452yrz7j

Hello @tfriem, I think it is currently broken, I work on a new version that should solve this. It should be done by the end of the week!

@neoziro just calling your attention to this. It is also broken for color props. Or you can point me in the right direction and I can try to make a PR

It is fixed in v11, theme is now merged correctly.