Adopt a CSS Strategy
Learn about the CSS strategy employed within our Rails application.
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 global namespace of classes spread across many files.
Get hands-on with 1400+ tech skills courses.