You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like something is off in how styles are compiled via the tailwindcss-rails gem. When comparing the same HTML with the same utility classes against a Rails project building with Vite (minimal repo here), that styling looks correct there, but wrong in the gem version.
There's no magic in this gem, it's just running the upstream tailwindcss CLI against the generated tailwind config.
So it seems like whatever is breaking things in the gem is happening "upstream". This issue was first reported on December 5th.
I'm wondering if anyone from the Tailwind team would have a better idea, given that timing, of what might have changed that would introduce a downstream issue with the tailwindcss-rails gem.
Any help is much appreciated, and if I can assist in providing any better reproduction/troubleshooting steps, I'm happy to do so!
The text was updated successfully, but these errors were encountered:
@adamwathan Thanks so much for the response! I've confirmed that ditching the forms plugin gets things looking as expected in my project. 🤘
I'm wondering what this means for the Rails gem. Is it accurate to say that it shouldn't be adding any of those plugins by default? Would that get it more in-line with the defaults of other build tools?
Or is it more accurate to say that TailwindUI users just need to be aware of what plugins they’re using? 🤔
Yeah personally I don't think any of those plugins should be in there and enabled by default, that's not the same experience you get when you initialize a Tailwind project outside of Rails and we don't actually use any of those plugins on our own projects. Should be opt-in for sure 👍
What version of Tailwind CSS are you using?
v3.4.16
What build tool (or framework if it abstracts the build tool) are you using?
the
tailwindcss-rails
gemWhat version of Node.js are you using?
N/A
What browser are you using?
Issue seems browser agnostic, but I've tested Safari and Firefox
What operating system are you using?
macOS
Reproduction URL
Repo with minimal amount of changes to reproduce the issue here: https://github.com/phillipspc/railstailwind
Describe your issue
It looks like something is off in how styles are compiled via the
tailwindcss-rails
gem. When comparing the same HTML with the same utility classes against a Rails project building with Vite (minimal repo here), that styling looks correct there, but wrong in the gem version.Here's a screenshot of a copy/pasted TailwindUI component:

I opened this issue originally on the gem's GitHub page, however according to the maintainer:
So it seems like whatever is breaking things in the gem is happening "upstream". This issue was first reported on December 5th.
I'm wondering if anyone from the Tailwind team would have a better idea, given that timing, of what might have changed that would introduce a downstream issue with the
tailwindcss-rails
gem.Any help is much appreciated, and if I can assist in providing any better reproduction/troubleshooting steps, I'm happy to do so!
The text was updated successfully, but these errors were encountered: