This documentation section is intended for cases where you already have an existing project and want to add a Keycloak theme as part of its deliverables.
One of Keycloakify’s strengths is its ability to let you reuse components and styles from your main application in your Keycloak theme. However, if you don’t have an existing codebase, it’s easier to fork one of the starter projects and develop your Keycloak theme as a standalone project.
Integrating Keycloakify into an Angular Workspace
Let's assume you have a monorepo project where sub applications are stored in the projects/ directory.
Next up you want to repatriate the Keycloakify Starter template sources.
Only copy over the src and .storybook directory.
To integrate the Keycloakify project into your workspace, update the angular.json file by adding an entry to the projects section. Below is an example configuration. Important lines that may require customization based on your project’s requirements are highlighted:
The application should now be good to go. Make sure that whenever you run a npx keycloakify command in your workspace root you add the path to your keycloakify project like this:
npx keycloakify build --project projects/keycloakify-theme