Theme color based on current screen

Is it possible to change the theme per screen? I want to change the look of the app based on the tab. If this is not possible, does anyone have other suggestions to make it clear a user is in a different section of the app?

Hi @Steven_W Thanks for reaching out! I was thinking you could have a JS query with theme.setMode(themeName), but this doesn't appear to be working :thinking: I will add a feature request for programmatically changing the theme on mobile

1 Like

I just thought of a new usecase. If this is possible, it will allow a dark theme as well. Not sure if we can speak of β€œdark mode” but it’s something. :face_holding_back_tears:

Hey @Steven_W,

Not sure if this fits your usecase completely, but these two posts are helpful:

What if you made the "theme" a transformer?

Something like...

return {{
  currentScreenSomewhere.value === "something"
    ? theme.primary
    : theme.secondary
}};

Where would I put the transformer? Is this possible for mobile?

To be honest, I have no idea, I have only build desktop apps so far...