Quick Start
Keycloakify is a tool that enables to create keycloak themes for customizing of the look and feel of Keycloak's user-facing pages. You can preview these pages here:
Why would I chose a third party tool over the theming system featured by Keycloak?
Keycloakify lets you use modern frontend technology: TypeScript, React, Angular and any styling solution or component library you'd like, such as Tailwind, MUI, shadcn/ui, or just plain CSS.
Keycloakify bundles the theme for you into a JAR that you can simply import into Keycloak.
The Keycloak themes generated with Keycloakify are downside compatible with all Keycloak Versions down to 11
Keycloakify themes implement real-time frontend validation out of the box. For example, when a user chooses a password that is too weak, they see the feedback message like "the password must be at least 12 character long" immediately and not after they have pressed the submit button.
We're here to help! Either via our Discord channel or GitHub issues.
Clone Repository
First thing you want to do is to fork/clone the Keycloakify starter template and install the dependencies
Spin up the Theme Outside Keycloak
For starters you can add a story of a page you want to test and start a locale .
You should now be able to see the login pages in different scenarios:
Customize the Login Page CSS
Keycloakify gives you many options on how to customize a theme but let's just start by adding a custom CSS rule.
Create this file:
Make sure your main.css is imported here:
There are several methods for customizing your theme. We recommend doing CSS based styling. Also you can test your theme in a Keycloak Container:
Testing your ThemeCustomization Strategies