This repository contains a custom theme for Keycloak, designed to align with the AlmaLinux branding.
- Login Page: Custom look and feel for the Keycloak login page.
- Registration Page: Themed registration page.
- Account Management: Consistent styling for user account management.
- Error Pages: Branded error pages.
To install this theme, follow these steps:
-
Clone the repository:
git clone https://github.com/hanthor/almalinux-keycloak-theme.git
-
Copy the theme to Keycloak: Navigate to your Keycloak installation directory (e.g.,
/opt/keycloak
) and copy thealmalinux
theme folders into thethemes
directory.cp -r almalinux-keycloak-theme/themes/almalinux /opt/keycloak/themes/
-
Configure Keycloak to use the theme:
- Log in to the Keycloak Admin Console.
- Select your realm (e.g.,
master
). - Go to
Realm Settings
->Themes
tab. - Set the following theme options to
almalinux
:Login Theme
Account Theme
Admin Console Theme
(optional, if you want the admin console to also use this theme)Email Theme
(optional)
-
Save the changes.
```bash
podman build . -t kctheme
podman run -p 8080:8080 -v ./themes:/opt/keycloak/themes:z kctheme
```
you can login at https://localhost:8080 with admin
/ admin