From 7b231748a228dfd79014130c8c4f8b3983fa9165 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Sun, 26 Feb 2023 18:26:53 +0100 Subject: [PATCH] Update KcApp.tsx Signed-off-by: Joseph Garrone --- src/keycloakTheme/KcApp.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/keycloakTheme/KcApp.tsx b/src/keycloakTheme/KcApp.tsx index 3f7a561..de1f801 100644 --- a/src/keycloakTheme/KcApp.tsx +++ b/src/keycloakTheme/KcApp.tsx @@ -19,8 +19,10 @@ const Info = lazy(()=> import("keycloakify/lib/pages/Info")); const kcProps: KcProps = { ...defaultKcProps, // NOTE: The classes are defined in ./KcApp.css - "kcHeaderWrapperClass": "my-color my-font", + // You can add your classes alongside thoses that are present in the default Keycloak theme... "kcHtmlClass": [...defaultKcProps.kcHtmlClass, "my-root-class"], + // ...or overwrite + "kcHeaderWrapperClass": "my-color my-font" }; export default function App(props: { kcContext: KcContext; }) {