Custom Fonts
Last updated
Last updated
Let's see how to use, for example, Playwrite Netherland via Google Fonts. Create the following CSS file:
Then import it as a global stylesheet:
That's it!
Keycloak is often used in enterprise internal network with strict network traffic control. In this context, using a Font CDN isn't an option, you want the font to be bundled in your JAR and served directly by the Keycloak server.
Let's see how we would use a self hosted copy Vercel's Geist font.
First let's download and extract the font files in src/login/assets/fonts/geist/
:
Now let's set Geist as the default font.
Create the following CSS file:
Then import it as a global stylesheet:
That's it!