Adopt a CSS Strategy
Explore key CSS management strategies suited for Rails server-rendered views. Understand why semantic CSS can be problematic and discover the benefits of frameworks, object-oriented CSS, and functional CSS approaches for maintaining clean, modular, and sustainable styles in your Rails apps.
We'll cover the following...
We'll cover the following...
A design system is great, but if we don’t have a way to manage our CSS and leverage that system, our CSS will be a huge mess. Unfortunately, Rails does not provide any guidance on how to manage CSS. Before Rails 7, Rails’ generators create per-controller .css files, creating confusion. These files gave the illusion of modularity, but those .css files were rolled up into one application.css, and we ended up with a ...