Skip to content

Utility classes not included in the production CSS #533

Closed as duplicate of#524
@magnum

Description

@magnum

I am developing an application using Rails, Tailwind 4, and deploying it with Kamal.

Gem versions:

rails 8.0.2 
tailwindcss-rails (4.2.2)
tailwindcss-ruby (4.1.3)
kamal (2.5.3)

When I run the application locally, it functions correctly. However, after deploying it with Kamal, the Tailwind CSS included in the image does not contain utility classes such as px-<number>, opacity-<number>, gap-<number>, h-<number>, top-<number>, and bottom-<number>, even though other similar classes appear to be present.

Here are the steps I have taken so far:

  • Verified that all classes are used directly within the template files (e.g., building them in Ruby, etc.).
  • Built remotely with Kamal using an AMD64 architecture.

here're the two different built files

tailwind-development.css.txt
tailwind-production.css.txt

Any suggestions?

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