# Applying Theme by Environment

**URL:** <https://community.nextw.com/t/applying-theme-by-environment/227>\
**Category:** Nextworld Platform\
**Created:** [April 30, 2025, 8:11pm UTC](https://community.nextw.com/t/applying-theme-by-environment/227 "2025-04-30T20:11:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin.DL](https://sea1.discourse-cdn.com/flex001/user_avatar/community.nextw.com/kevin.dl/32/179_2.png) [@Kevin.DL](https://community.nextw.com/u/Kevin.DL)\
**Post date:** [April 30, 2025, 8:11pm UTC](https://community.nextw.com/t/applying-theme-by-environment/227/1 "2025-04-30T20:11:59Z")

</div>

Is it possible to auto apply a theme based on the environment selected via the environment picker in the page header? I have a default theme assigned to each environment in the ‘Tenant Environment Setup’ application.

Example: Env1 - Theme1, Env2 - Theme 2, Env3 - Theme3.

Logging into Env1 displays displays Theme1, as expected. This is most likely occurring because the user is defined with a ‘User Interface Configuration Profile’.

**Question: when I select Env2 or Env3 from the picker, I’d like the applied theme to auto display vs being sticky to the user.**

---

<div class="post-metadata">

**Author:** ![matt](https://sea1.discourse-cdn.com/flex001/user_avatar/community.nextw.com/matt/32/1514_2.png) [@matt](https://community.nextw.com/u/matt)\
**Post date:** [April 30, 2025, 8:55pm UTC](https://community.nextw.com/t/applying-theme-by-environment/227/2 "2025-04-30T20:55:50Z")

</div>

This is how themes work today:

1. When a user has manually selected a theme in the `User Profile` menu under `Appearance`, that selection is remembered for that `Environment` and always wins against all other mechanisms for theme defaults.

2. If the user does not have any theme selected in the `User Profile` menu but their `User Interface Configuration Profile` contains a theme name, that wins.

3. If the user does not have any theme selected in the `User Profile` menu nor their `User Interface Configuration Profile` then if the token contains a theme name (i.e. from tenant configuration) then that wins.

4. If the user does not have any theme selected in the `User Profile` menu nor their `User Interface Configuration Profile` nor in the token, then the deployment’s white label definition wins.
