Hi Community,
I am trying to develop a custom theme template. Even thou I want to define the main color, i want to still allow users the flexibility to change.
Am following the steps here, and this part confuses me quite a bit. Where actually should i place the /*primary-color*/ ??
Thanks!
Hi Jun Mun Chan,
Do you mean something like this?
CSS variables are easy to use after you understand them. Just doing it by copying someone else's code may give you surprises at the end.
Follow the links provided by Navneet. to study the topic.
Hi,
whether you need to build a theme switcher?
you can do it by theme css by creating dynamic variables in css.
https://www.outsystems.com/forge/component-overview/9084/multi-theme-reactive-o11
https://www.outsystems.com/forge/component-overview/8695/reactive-outsystemsui-dark-mode-o11
there are some article is also available for the same
https://medium.com/noesis-low-code-solutions/outsystems-dynamic-themes-1509a474492f
https://itnext.io/how-to-dynamically-customize-colors-in-themes-in-outsystems-applications-957308d31866
https://www.outsystems.com/blog/posts/multiple-themes-for-applications/
Hi @Jun Mun Chan,
Please check out this post.
Thanks,
Lavanya Kamalaguru.