npm install
npm run build
mvn package
Build this theme .jar
file with:
# build the theme and wrap it in a .jar file
mvn package
Then 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 -d
Connect 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.json
change 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-redesign
tosrc/main/resources/theme/acme
-
in
package.json
:- adjust the name
- adjust the description
- adjust the
scripts.build
section accordingly with the new pathsrc/main/resources/theme/acme
in 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