8000 GitHub - waynemorphic/docs.keycloakify.dev: 📖 Keycloakify documentation website
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

waynemorphic/docs.keycloakify.dev

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icon
rocket-launch

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:

{% embed url="https://storybook.keycloakify.dev/" %} Preview your Keycloakify Theme with Storybook {% endembed %}

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 makes it very easy to test your theme inside and outside Keycloak with hot reloading enabled.
  • 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

{% tabs %} {% tab title="React" %} First thing you want to do is to fork/clone the Keycloakify Vite1 starter template and install the dependencies

git clone https://github.com/keycloakify/keycloakify-starter
cd keycloakify-starter
yarn

{% endtab %}

{% tab title="Angular" %} First thing you want to do is to fork/clone the Keycloakify Angular 2starter template.

git clone https://github.com/keycloakify/keycloakify-starter-angular
cd keycloakify-starter-angular
yarn

{% endtab %} {% endtabs %}

Spin up the Theme Outside Keycloak

For starters you can add a story of a page you want to test and start a locale storybook. Before that you need to copy the patternfly resources for locale development

npx keycloakify copy-keycloak-resources-to-public
npx keycloakify add-story
npm run storybook

Now you should be able to see the login page with all its test cases:

Customize the Login Page CSS

Keycloakify gives you many options on how to customize a theme. For the quickstart overwrite a css style of a Keycloak class:

{% code title="styles.css" %}

.kcFormHeaderClass {
    border: 3px solid red;
}

{% endcode %}

There are several methods for customizing your theme. We recommend using a different Base Theme for example with MUI or Angular Material. Also you can test your theme in a Keycloak Container:

{% content-ref url="basics/testing-your-theme/" %} testing-your-theme {% endcontent-ref %}

{% content-ref url="in-depth-customization/customization-strategies/" %} customization-strategies {% endcontent-ref %}

Footnotes

  1. There's also a Webpack based starter that you can find here. ↩

  2. There is also a Vite based starter:
    https://github.com/keycloakify/keycloakify-starter-angular-vite ↩

About

📖 Keycloakify documentation website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0