Skip to content

Styling seems off compared to comparable/working build using Vite #443

Closed
@phillipspc

Description

@phillipspc

As best I can tell, the styling provided by this gem seems off compared to what it should be. I noticed this when attempting to use components from TailwindUI, where copy/pasting those components should produce the exact styling previewed there.

For reference here is a screenshot of an input from the TailwindUI site:
image

When I attempt to build that component in an app with the most basic/vanilla setup possible (ie. a new Rails 8 project with -css tailwind argument), I get this:
image

As a troubleshooting step, I setup the equivalent app using Vite as a build path instead of the tailwindcss-rails gem. Here's the output there:
image

As you can see, the build with Vite looks correct, while there are several styling problems with the build through tailwindcss-rails. Both apps look to be running the same version of Tailwind under the hood, so I can only assume that something is off with the configuration provided by this gem.

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