Hi Alejandro Castrelo,
With the CSS Loader widget, we can able to specify the theme based on the logged-in user or some other conditions. I will show some examples with screenshots.
I created the two dashboard pages for different user roles like Admin and User roles. If Admin logged in to the application, that button background color will change. I will show you, how to do that.
Step 1: Created two different pages for two different user roles.
Step 2: Added the class name for each button
Step 3: Created the data source microflow to return the CSS string based on the logged in user.
Step 4: Added the CSS loader widget under the layout and add the Data source microflow in this widget. Like this
Output :
When logged in as Admin user, that button background color will look like proper brand colors.
When logged in as User, that button background color will look like mismatched brand colors.
I hope, it will help you.
Thanks and regards,
Vijayabharathi V