Here you can find a simple yet beautiful sample app that switches its styling between light and dark depending on current user theme stored in Account entity. (And here is the same app for Mendix 8.) ...