Skip to content

Styles not loading properly. #534

Closed as duplicate of#524
Closed as duplicate of#524
@Jaydiah-dev

Description

@Jaydiah-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions