# How to change Theme Selector Provider

**URL:** <https://forum.keycloak.org/t/how-to-change-theme-selector-provider/7894>\
**Category:** Extending the server\
**Created:** [March 12, 2021, 4:55am UTC](https://forum.keycloak.org/t/how-to-change-theme-selector-provider/7894 "2021-03-12T04:55:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkl13](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@bkl13](https://forum.keycloak.org/u/bkl13)\
**Post date:** [March 12, 2021, 4:55am UTC](https://forum.keycloak.org/t/how-to-change-theme-selector-provider/7894/1 "2021-03-12T04:55:04Z")

</div>

Hi everyone,

I have read the document about Theme Selector Provider [here](https://www.keycloak.org/docs/latest/server_development/#_theme_selector). That page shows the way to implement the customized theme selector provider and deploy it to Keycloak but I cannot find any instruction to change the default theme selector to my customized theme selector.

So, how can I set my customized theme selector as the default theme selector for Keycloak?

Thank you!

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [March 13, 2021, 9:20am UTC](https://forum.keycloak.org/t/how-to-change-theme-selector-provider/7894/2 "2021-03-13T09:20:00Z")

</div>

From: [Server Developer Guide](https://www.keycloak.org/docs/latest/server_development/#implementing-an-spi)

"You can configure your provider through `standalone.xml` , `standalone-ha.xml` , or `domain.xml` .

For example by adding the following to `standalone.xml` :

```auto
<spi name="themeSelector">
    <provider name="myThemeSelector" enabled="true">
        <properties>
            <property name="theme" value="my-theme"/>
        </properties>
    </provider>
</spi>

```

"

Not sure how to change the default, but at least this way, you could load it from a custom Authenticator and run it there.

---

<div class="post-metadata">

**Author:** ![bkl13](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@bkl13](https://forum.keycloak.org/u/bkl13)\
**Post date:** [March 15, 2021, 6:37am UTC](https://forum.keycloak.org/t/how-to-change-theme-selector-provider/7894/3 "2021-03-15T06:37:33Z")

</div>

Hi @xgp ,

Thank you for your answer. I already declared the configuration for my customized theme selector provider in `standalone.xml` but I cannot find where I can change the setting to use my theme selector provider. Could you give me some hints?

Besides that, I found a discussion that shows us the way to set the customized theme selector by default [here](http://forum.keycloak.org/t/themeselectorproviderfactory-not-used-by-keycloak-7/534/3). But I think it would be better if we use the official way that we can change the setting in the Keycloak UI.
