The snippet above produces a console error stating that the component ...references the 'theme' prop in its styles but no theme was provided via prop or <ThemeProvider>. I assume this is because at run-time dynamic styles are compiled to something along the lines of:
Package Versions:
I have just started a new project using
babel-plugin-tailwind-components
, and trying to use prop variables for dynamic component styling:The snippet above produces a console error stating that the component
...references the 'theme' prop in its styles but no theme was provided via prop or <ThemeProvider>.
I assume this is because at run-time dynamic styles are compiled to something along the lines of:Static styles such as
flex
ortext-center
don't cause this error to be returned, since they aren't dependent on custom configurations.Is there any way to avoid this error being produced?