I have been immersed in a personal project that involves multiple HTML views and CSS files. Up until now, I have been consolidating all the CSS files into one "global.css" and linking this file to my index.html. However, with some friends joining the project, conflicts have arisen regarding the styling of the pages. It seems that styles from one view are interfering with styles from other views. As a solution, I am considering directly importing CSS files into the respective HTML views. For instance, in a login view (login.html), I would import "login.css" directly. Are there any drawbacks to importing CSS files this way, or is there a better solution that you would recommend?
Please share your opinions on the proposed solution or suggest an alternative approach.