I am in the process of establishing a multi-tenant application with a single instance and single database setup. The backend infrastructure is built using Ruby on Rails, while the frontend is handled by a separate AngularJS app integrated with a Rails framework.
To identify the subdomain and consequently determine the tenant, I have implemented a resolve function on an abstract parent state. Once the specific tenant is identified, my goal is to access CSS variable values stored in a configuration file on the front-end. These values would then be utilized to generate the main styles.css file containing classes referenced throughout the project.
While I have heard that CSS pre-processors such as Sass and Less can facilitate this task, I lack experience with either one. As a result, I am currently struggling to configure this setup effectively.
If anyone could provide guidance or offer code examples to help me navigate through this challenge, it would be greatly appreciated. Thank you!