diff --git a/js/apps/account-ui/maven-resources/theme/keycloak.v3/account/index.ftl b/js/apps/account-ui/maven-resources/theme/keycloak.v3/account/index.ftl index 225349a1cd0d..af6b1d7f43a9 100644 --- a/js/apps/account-ui/maven-resources/theme/keycloak.v3/account/index.ftl +++ b/js/apps/account-ui/maven-resources/theme/keycloak.v3/account/index.ftl @@ -155,6 +155,7 @@ "resourceUrl": "${resourceUrl}", "logo": "${properties.logo!""}", "logoUrl": "${properties.logoUrl!""}", + "darkMode": ${darkMode?c}, "baseUrl": "${baseUrl}", "locale": "${locale}", "referrerName": "${referrerName!""}", diff --git a/js/apps/account-ui/src/account-security/SigningIn.tsx b/js/apps/account-ui/src/account-security/SigningIn.tsx index 8ff4281824f4..a1325a37a1ef 100644 --- a/js/apps/account-ui/src/account-security/SigningIn.tsx +++ b/js/apps/account-ui/src/account-security/SigningIn.tsx @@ -130,7 +130,7 @@ export const SigningIn = () => { >
- {iconDarkSrc && ( + {context.environment.darkMode && iconDarkSrc && ( <#if authenticator.iconLight?? || authenticator.iconDark??> - <#if authenticator.iconDark??> + <#if darkMode && authenticator.iconDark??>