This repo is based on the Keycloakify v7 starter template and has been (minimally) adapted to serve the needs for https://sso.world-direct.at.
Note: although stated in the Standalone keycloak theme section, I did not perform said changes (except for the CI part) with the main reason being the ability to rebase more easily in future.
Is as simple as running:
yarn install && yarn storybook
and seeing live updates on your screen whenever you make edits.
The upstream docs state1 that:
[..] customizing the Template.tsx component alone will already cover 90% of your customization needs.1
Given this, the most important files are:
- Template.tsx
- KcApp.tsx, for adding your own CSS
classes
- KcApp.css, for defining your styles
- fiddling with resources
This repo's commits give good pointers, too.
- To create a new deployment, simply raise the version in package.json; to create pre-release versions use the following versioning scheme:
0.1.2-rc.1
- Push to the
main
branch, which in turn will automatically create a tag, generate the release notes, lint and build a.jar
file containing the final theme - Deploy the resulting jar file by either following the Keycloak or Red Hat SSO docs.
- tl;dr: copy the resulting jar file to a certain location, e.g.,
${jboss.home}/standalone/deployments/
Note: the latest version is automatically picked up and deployed to https://sso.world-direct.at when running the ansible playbook via
ansible-playbook site.yaml --tags keycloak_themes
- tl;dr: copy the resulting jar file to a certain location, e.g.,
To reference this theme, navigate to your realm > Realm Settings
> Themes
and choose keycloak-theme-world-direct
as your Login Theme
; optionally you can also enable Internationalization Enabled
and set de
as the Default Locale
:
Feel free to raise an issue, contributions are welcome via PRs too :-).
- [1]: Keycloakify Starter inluding its docs and its
Use this template
possibility
Footnotes
-
Keycloakify Storybook shows all the base template provided out-of-the-box by Keycloak which can be overridden ↩ ↩2