-
Notifications
You must be signed in to change notification settings - Fork 3
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
Plugins not working with styled components #2
Comments
Hey @mlaroy, thank you for submitting issue. I'll try to reproduce the issue in a few hours. |
Hi there, Here's what I do:
And then in And then I change every
to
In this case it's in Try to change |
Actually, |
Hi, I see that perhaps my issue wasn't clear - the overall plugin works great with styled components. It's the Tailwind Plugin part (as detailed in the doc that I linked to) that doesn't work. So if you want to use a class generated by one of Tailwind's plugns, e.g:
which is what enables using the
Other generic tailwind classes work just fine this way. I hope that is a little more clear. Thanks for your hard work! |
Ah, I see what you mean. This plugin uses babel-plugin-tailwind-components which currently doesn't support tailwind plugin. You can see the discussion here bradlc/babel-plugin-tailwind-components#4 |
It seems that the Tailwind plugins aren't working using styled components. For example, the container plugin should give the max-width properties at different breakpoints, with optionally centering by default in the config.
See Tailwind's docs for plugin details.
However, even with this setting enabled, no styles are applied.
The text was updated successfully, but these errors were encountered: