npm install
npm run build
mvn package
Build this theme .jar file with:
# build the theme and wrap it in a .jar file
mvn packageThen start Keycloak IAM (in single-node mode) locally through docker and use the host ./src/main/resources/theme folder as Keycloak deployment directory.
docker compose up -dConnect to Keycloak console http://localhost:8080, click on Themes tab, and select cloud-iam-redesign in front of Login Theme.
If you want to activate the login, email or other theme, open :
src/main/resources/META-INF/keycloak-themes.jsonchange the type to put the themes you want :
{
"themes": [{
"name" : "cloud-iam-redesign",
"types": [ "login", "email" ]
}]
}If you want to start developping your new theme based on our existing template, help yourself!
Assuming your company is named acme, you'll have to setup a few things before building your own theme.
-
rename
src/main/resources/theme/cloud-iam-redesigntosrc/main/resources/theme/acme -
in
package.json:- adjust the name
- adjust the description
- adjust the
scripts.buildsection accordingly with the new pathsrc/main/resources/theme/acmein the parcel commands
-
in
pom.xml:- set your own group id
- set your own artifact id
-
in
src/main/resources/META-INF/keycloak-themes.json, adjust the theme name toacme