Using custom theme colors in ThemeProps
tfriem opened this issue · comments
Tobias Friemel commented
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
Greg Bergé commented
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!
Oforomeh Oshomo commented
@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
Greg Bergé commented
It is fixed in v11, theme is now merged correctly.