Replies: 2 comments 4 replies
-
@HidekoCodes Thanks for opening this issue, and sorry that you're having this problem. We really need more information from you in order to investigate, though. Ideally enough to reproduce what you're seeing. What versions of tailwindcss-rails and tailwindcss-ruby are you using? What does it mean to "use the Tailwind CDN"? Can you share your code in a public repository? |
Beta Was this translation helpful? Give feedback.
-
Looks like the account who created this issue no longer exists, but in any case the answer to this question was found by @phillipspc in #443: the default Removing the plugins from your project's config will fix the styling weirdness. |
Beta Was this translation helpful? Give feedback.
-
This morning I came to find my styles had been broken. I couldn't for the life of me figure out what was wrong. I ended up generating a new Rails app with the
--css tailwind
flag to see if this was a project-specific issue. It was not. I ran into the same issue again and again. (No, I didn't change settings).I then generated a vanilla Rails app and used the Tailwind CDN instead. This worked without any issues. And so the culprit seems to be with tailwindcss-rails. I just don't know what's triggering it.
I attached two screenshots — the same component but one uses tailwindcss-rails and the other uses the CDN.
As you can see, the CDN is accurate, whereas tailwindcss-rails has broken the styling.
For reference, this component is from https://tailwindui.com/components/application-ui/forms/form-layouts if you want to copy and paste and try it yourself. I'd be curious if anyone else has the same issue and if so how to fix it. Of course, the Issue is not only with this form but with all other components.
Thank you kindly.
Beta Was this translation helpful? Give feedback.
All reactions