# Themes for different applications, New Universal Login

**URL:** <https://community.auth0.com/t/themes-for-different-applications-new-universal-login/109430>\
**Category:** Get Help\
**Tags:** branding, new-universal-login-page-templates\
**Created:** [June 16, 2023, 9:06pm UTC](https://community.auth0.com/t/themes-for-different-applications-new-universal-login/109430 "2023-06-16T21:06:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marissas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marissas/32/46774_2.png) [@marissas](https://community.auth0.com/u/marissas)\
**Post date:** [June 16, 2023, 9:06pm UTC](https://community.auth0.com/t/themes-for-different-applications-new-universal-login/109430/1 "2023-06-16T21:06:37Z")

</div>

My team is setting up our page templates using the New Universal Login’s Management API. We’ll have multiple applications under the same tenant. These applications will be different brands, each with their own color schemes and fonts.

It seems that we can create a branding theme via the Management API ([Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Branding/post_branding_theme)). However, how do we update which theme we use depending on the application name?

Or, alternatively, how do we target the buttons and links in the widget to update their colors and fonts? The classes of these components are all minified. It’s been suggested that we could search the innerHTML like

```auto
// for (const a of document.querySelectorAll('a')) {
    // if (a.innerHTML.startsWith('Sign up')) {
    // a.href = 'https://www.okta.com';
    // }      
    // }

```

However, we’re supporting nine languages. Between all the prompts and languages, this could quickly get out of hand and is very brittle.

Anyone have any suggestions? That would be much appreciated

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 30, 2023, 1:49pm UTC](https://community.auth0.com/t/themes-for-different-applications-new-universal-login/109430/3 "2023-06-30T13:49:30Z")

</div>

Hi @marissas

Welcome back to the Auth0 Community!

Based on your description, I highly encourage you to check the lock configuration within the Login Experience instead of dealing with the innerHTML or searching thru DOM.

To achieve this flow, you will need to create separate lock configurations within Custom Universal Login Page. Based on the `clientID`, unique for each application, you can hardcode and conditionally determine which Lock configuration to render for which application. Inside of Lock page, you can modify and conditionally select different colors for different applications and modify the UI based on your needs. All Theme options you can find [here](https://auth0.com/docs/libraries/lock/lock-configuration#theme-options)

```auto
    if(config.clientID === 'ApplicationAClientID'){
      var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
      ...
        theme: {
           primaryColor:'green'
      },
     ...
      }
    }else{
      var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
     ...
        theme: {
           primaryColor:'blue'
      },
     ...
      }
    } 

```

For further Lock customization, check our documentation which you can find [here](https://auth0.com/docs/libraries/lock/lock-configuration#theme)

More details about Lock initial configuration you can find [here](https://auth0.com/docs/libraries/lock)

Please let me know if you have more questions.

Thanks,  
Dawid

---

<div class="post-metadata">

**Author:** ![marissas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marissas/32/46774_2.png) [@marissas](https://community.auth0.com/u/marissas)\
**Post date:** [June 30, 2023, 5:41pm UTC](https://community.auth0.com/t/themes-for-different-applications-new-universal-login/109430/4 "2023-06-30T17:41:26Z")

</div>

Hi Dawid!

Thanks for your response. We’re using New Universal Login instead of Classic Universal Login, so unfortunately we’re not using Lock.

However, my team and I have decided to target specific components instead like `button[name="action"]` (so that we don’t change Google or Facebook login buttons), `a`, or `input`. We will then update the colors for the application using `{% if application.name == "XYZ" %}`. It’s not ideal, but we’re hoping this could be a stand in solution for now until specific themes for specific applications are supported natively by Auth0.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 30, 2023, 5:50pm UTC](https://community.auth0.com/t/themes-for-different-applications-new-universal-login/109430/5 "2023-06-30T17:50:53Z")

</div>

Thank you for the response, @marissas, If you feel we are missing a feature, please create a topic in the [Feedback](https://community.auth0.com/c/feedback/95) category.

Best regards  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 14, 2023, 5:50pm UTC](https://community.auth0.com/t/themes-for-different-applications-new-universal-login/109430/6 "2023-07-14T17:50:58Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
