π Tailcloakify V1 π
Tailcloakify is a Keycloak Theme that is based on Keycloakify, layered with TailwindCSS and inspired by Keywind UI design approach.
- Place the provided JAR file in the /providers/ directory or use the example Dockerfile from this repository to add the provided JAR file into your Docker Image.
- Set environment variables or localization messages to customize the theme with the out of the box configuration functionalities.
- Restart your Keycloak server or deploy your builded docker image to your server.
- Log in to the Keycloak Admin Console.
Go to Realm Settings > Themes.
Select the Tailcloakify login theme from the dropdown.
Save your settings.
Tailcloakify provides ways of customizing your theme without the need to rebuild the theme while using a prebundled JAR file. This could include adding a background video/logo or customizing the footer behavior.
Name | Description |
---|---|
TAILCLOAKIFY_ADDITIONAL_SCRIPTS | Use it to add other external scripts |
TAILCLOAKIFY_BACKGROUND_LOGO_URL | Use it to add an image of your logo |
TAILCLOAKIFY_BACKGROUND_VIDEO_URL | Use it to add a MP4 format background video on your register and login pages |
TAILCLOAKIFY_FAVICON_URL | Use it to add a url to your Favicon |
TAILCLOAKIFY_FOOTER_IMPRINT_URL | Use it to add an Impressum |
TAILCLOAKIFY_FOOTER_DATAPROTECTION_URL | Use it to add url to your data protection document |
TAILCLOAKIFY_FOOTER_ORESTBIDACOOKIECONSENT | Use it to integrate Orestbida cookie consent plugin |
Some customizations are possible through Keycloak's Localization System, allowing setting up different configurations for each language. You can either add custom localization by adding those into the keycloak server or by manually setting them within the realm settings.
Name | Description |
---|---|
footerImprintUrl | The localized enabled alternative to env: TAILCLOAKIFY_FOOTER_IMPRINT_URL |
footerDataprotectionUrl | The localized enabled alternative to env: TAILCLOAKIFY_FOOTER_DATAPROTECTION_URL |
If you want to customize the theme beyond the outlined capabilities, you can do so by forking this repository and performing manual changes yourself.
Here do you find a Quick Start, how to setup your development environment:
git clone https://github.com/ALMiG-Kompressoren-GmbH/tailcloakify
cd tailcloakify
yarn install # Or use an other package manager, just be sure to delete the yarn.lock if you use another package manager.
npm run dev
Alternatively, to run the theme locally via Keycloak:
npx keycloakify start-keycloak
Or you can preview the pages using the storybook:
npm run storybook
You need to have Maven installed to build the theme (Maven >= 3.1.1, Java >= 7).
The mvn
command must be in the $PATH.
- On macOS:
brew install maven
- On Debian/Ubuntu:
sudo apt-get install maven
- On Windows:
choco install openjdk
andchoco install maven
(Or download from here)
npm run build-keycloak-theme
Note that by default Keycloakify generates multiple .jar
files for different versions of Keycloak.
Tailcloakify comes with a generic GitHub Actions workflow that builds the theme and publishes
the jars as GitHub releases artifacts.
To release a new version just update the package.json
version and push.
To enable the workflow go to your fork of this repository on GitHub then navigate to:
Settings
> Actions
> Workflow permissions
, select Read and write permissions
.
If you would like to introduce additional changes, please read the Contributing Guidelines.
Anyone who interacts with Tailcloakify in any space, including but not limited to this GitHub repository, must follow our Code of Conduct.
Licensed under the MIT License.