Mapping Multiple Themes to XUI

This topic has 2 replies, 3 voices, and was last updated 2 weeks, 5 days ago by Todd Story.

  • Author
    Posts
  • #27492
     Timothy E.
    Participant

    Hi Everyone,

    I am trying to map an additional theme to the ThemeConfiguration file however everytime I try to add an additional theme, every page will then be blank and the logo displayed in the browser would be the Tomcat logo instead of Forgerock. I can confirm that I am able to put the files in the correct directory and the custom theme is working properly however the 2nd doesn’t.

    Is this the correct syntax?

    mappings: [
    // Use the theme with the key “my-theme” if the realm is either /my-realm or /my/sub-realm.
    { theme: “fr-dark”, realms: [“/themeTest”, “/”, “/customer”] }
    { theme: “bdo-dark”, realms: [“/darkThemeTest”] }
    ]
    The fr-dark theme is working properly however when I add the Bdo-dark it does not(all pages go blank).

    Thanks in advance!

    • This topic was modified 3 weeks, 2 days ago by Timothy E..
    #27510
     William Hepler
    Participant

    I don’t see anything against it, but documentation says you must have a default theme.
    https://backstage.forgerock.com/docs/am/6.5/ui-customization-guide/#proc-apply-a-theme

    I think it’s the format your using as you shouldn’t have to repeat Theme:
    Go back to the Orignal and try listing one theme section but multiple themes under it like the doc:

    {
    theme: {
    “default”: { … },
    “fr-dark”, realms: [“/themeTest”, “/”, “/customer”],
    “bdo-dark”,realms: [“/darkThemeTest”] }

    #27518
     Todd Story
    Participant

    Also, noticed that the following syntax requires a comma to separate your themes (end of line 1):
    { theme: “fr-dark”, realms: [“/themeTest”, “/”, “/customer”] },
    { theme: “bdo-dark”, realms: [“/darkThemeTest”] }

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2020 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?