Custom theme to admin

Hi! I’m trying to change to theme of admin in keycloak with no succes. Am I doing anything wrong?

This is my theme.properties:

parent=keycloak.v2
styles=assets/styles.css

Try the example in the keycloak-quickstarts repository. You may be able to work backward from the example they have there.

1 Like

Hi! This is essentially what I had already but it does not work

β”œβ”€β”€ themes
β”‚   β”œβ”€β”€ admin
β”‚   β”‚     β”œβ”€β”€ resources
β”‚   β”‚   β”‚   β”œβ”€β”€ assets
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ styles.css
β”‚   β”‚   └── theme.properties
β”‚   β”œβ”€β”€ account
β”‚   β”‚     β”œβ”€β”€ resources
β”‚   β”‚   β”‚   β”œβ”€β”€ assets
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ styles.css
β”‚   β”‚   └── theme.properties

theme.properties:

parent=keycloak.v2
styles=assets/styles.css
title=testtt

Did you build using the same technique as in the example? Did you create a keycloak-themes.json file?

No, i’m sorry but I do not see that in the example… Only in the extend-account-console, but I need the admin.

To clarify, my styling works on login, account and email ): Just not on admin.

If you are building the extension in that repo and it isn’t working to style the admin, I’d suggest filing an issue there, as that’s supposed to be up to date and working with the current version of Keycloak.

I think I had the same issue.
In case anyone coming here is interested :
If you have multiple realms you must change the Admin console theme of the master realms to change the Admin console theme of ALL realms (I don’t know if this intended or if this is a bug).
In another words, go to β€œKeycloak” (master) realm => Realm settings => Themes => Choose your custom theme under β€œAdmin theme” and you should see your theme applied