Our development team utilizes Rails and adheres to a specific architecture that we follow closely. You can find more information about our architecture guidelines at this link.
It's important to note that depending on the framework you are using, there may be some necessary adjustments to the logic.
Here is a brief overview of our architecture:
Within rails, we use a method to assign a common ID to a group of pages. For example, all user management-related pages might have the id: body#users-registration. Similarly, pages related to reporting services could have the id: body#reporting-services.
We maintain a common.css file that contains universal styles that can be applied site-wide, such as layout styles, lists, paragraphs, and panels.
In addition to the common.css file, we also have separate CSS files for each group of pages, like users-registration.css and reporting-services.css. These files contain styles specific to the corresponding page groups, helping us prevent conflicts across different pages.
Before deploying to production, we combine all CSS files into a single file to streamline loading times.