152
Views
1
Comments
Theme Generator
Question

Hi Guys, 


I was looking into the theme generator of Outsystems and to my curiosity thought if we can implement the same in our application where user will be able to configure [at the time of registration] what type of colors, fonts etc he/she wants to see when he/she logs into the application. 


Did someone tried to do this here. Please guide me the right direction. 


Thanks and Regards 

Atul Patel 

2017-03-03 12-48-17
Balasubramanian Prakasam

Hi Atul,

For that you can use css tricks, in css you can use funcion "var()" helps in runtime, here i am attaching my oml for your reference, its working you expected.

ex:

Root declare

SyntaxEditor Code Snippet

:root {
    --mycolor: red;
 }


Page usage:

SyntaxEditor Code Snippet

.customcolor {
    color: var(--mycolor);
 }


Thanks,

Balu

Dynamic_Color.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.