Dynamic Sass variables per user?

0
Im working on a project where every user can pick a fav color in settings. Certain elements on the page would have sass with $usercolor-main. Is this doable, I think Sass compiles before the page is loaded, how would you go about doing this?  
asked
3 answers
1

In the AppStore you can find a widget named EnumClass.

With this widget you can give an element a certain class based on a string, enum or boolean.

In SASS you can then define colors based on that class (see here for an example).

answered
1

Thx Stephan,

I think this widget sound smore like what we will need.

https://appstore.home.mendix.com/link/app/106033/

"StyleSheetSwitcher
Change the styling of your application based on application logic."

answered
0

If you really need dynamic sass you might have a look at the 

Mendix Theme Creator

This is dynamically generating the css and using that.

answered