Skip to content
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

Styles not loading properly. #534

Open
Jaydiah-dev opened this issue Apr 9, 2025 · 0 comments
Open

Styles not loading properly. #534

Jaydiah-dev opened this issue Apr 9, 2025 · 0 comments

Comments

@Jaydiah-dev
Copy link

Hello,

I'm trying to run tailwind(4.2.1) in a newly installed rails 8 app and the styles aren't rendering properly. I'm running it via the docker devcontainer that comes preinstalled with rails and it looks like some styles are applied while others aren't.

I have tried the following:

  • the puma plugin option
  • using the [always] flag with the css watch command, using foreman.
  • added tty:true to the docker-compose config.
  • added config.assets.debug = true to the development.rb file.

I generated the rails app with rails new myapp --skip-test --force --database=postgresql --devcontainer --css tailwind.

Below is a screenshot of a page in the app. When I try the same styles on the tailwind css playground, it renders correctly.

Any suggestions on what could be wrong?

Gem versions:

rails: 8.0.2
ruby: 3.3.0
tailwindcss-rails: 4.2.1
tailwindcss-ruby: 4.0.17

Thanks.


local

Image


tailwind payground
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant