Skip to content

Conversation

@dari-us
Copy link

@dari-us dari-us commented Oct 23, 2025

We have tens of apps in our company that all use stylesheets from a common corporate design layout gem.
In some of these apps, custom styles are used, which partly overwrite existing styles from the layout gem.

However, without CSS bundling (which we intend to avoid), there is no clean way to ensure the app styles overwrite the styles from vendor and the gems (aka are loaded last).
The only obscure way is to name all local files like zzzzzzzz_application.css to make those last in the list generated by stylesheet_link_tag :all.

To remedy this, I have added the option :all_app_last so the stylesheet tags are generated vendor and gems first, app last so external styles can safely be overwritten in stylesheets under app/assets.

Is this feature desireable for a broader audience or is something like this already possible and I just missed it?

@dari-us dari-us closed this by deleting the head repository Oct 23, 2025
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

Successfully merging this pull request may close these issues.

1 participant