I'm trying to build custom login themes with keycloakify for my orgs keycloak server
I'll help you set up Keycloakify for building custom login themes. Let me first explore your repository to understand the current structure.
I can help you set up Keycloakify to build custom login themes. Let me create the project structure and integrate it with your existing Docker setup.
I've set up Keycloakify for your Keycloak server. Here's what was created:
themes/ ├── package.json # Keycloakify dependencies ├── vite.config.ts # Vite + Keycloakify plugin config ├── tsconfig.json # TypeScript config ├── src/ │ ├── main.tsx # Entry point │ └── keycloak-theme/ │ └── login/ │ └── Login.tsx # Sample login page ├── README.md # Theme documentation └── .gitignore
The sample Login.tsx uses an older API. For a complete, working setup:
themes/dist_keycloak/The themes will be automatically included when building your Docker image!
so did you use the official starter?
No, I created a basic structure manually. The code I wrote uses an older API that won't work with the latest Keycloakify.
That's why I recommended using the official starter instead:
The official starter has:
The files I created give you the structure, but you'll need to replace them with the starter's files for a working theme.
so just do that
Done! I've replaced the themes directory with the official Keycloakify starter.
What was set up:
themes/npm installImportant: You need Apache Maven installed to build the theme JAR:
Then build the theme:
Next steps:
docker build -t keycloak .The starter includes all the login pages (Login, Register, Reset Password, etc.) pre-configured and ready to customize in themes/src/login/pages/.
I've added a maven wrapper. check to see if it works