diff --git a/src/kc.gen.tsx b/src/kc.gen.tsx index 9c7f707..6cb8720 100644 --- a/src/kc.gen.tsx +++ b/src/kc.gen.tsx @@ -1,5 +1,5 @@ // This file is auto-generated by the `update-kc-gen` command. Do not edit it manually. -// Hash: 822f146dfd89023346d41d4f77fba9745b7f55365c95ca37f85806c01ab23dc4 +// Hash: 7dbbfb317418e9799cdce9a990519799f98af7dbfe27f1d0438c6738cffb7515 /* eslint-disable */ @@ -9,9 +9,9 @@ import { lazy, Suspense, type ReactNode } from "react"; -export type ThemeName = "keycloakify-starter"; +export type ThemeName = "keycloakify-starter" | "class"; -export const themeNames: ThemeName[] = ["keycloakify-starter"]; +export const themeNames: ThemeName[] = ["keycloakify-starter", "class"]; export type KcEnvName = never; diff --git a/src/login/KcPage.tsx b/src/login/KcPage.tsx index 47a73b4..1e40445 100644 --- a/src/login/KcPage.tsx +++ b/src/login/KcPage.tsx @@ -5,6 +5,7 @@ import { useI18n } from "./i18n"; import DefaultPage from "keycloakify/login/DefaultPage"; import Template from "./Template"; import "./theme.css"; +import "./class-theme.css"; const UserProfileFormFields = lazy( () => import("keycloakify/login/UserProfileFormFields") ); @@ -25,7 +26,11 @@ export default function KcPage(props: { kcContext: KcContext }) { ) { const { msg } = props.i18n; + const isClassTheme = props.kcContext.themeName === "class"; return ( <> -