[keycloak-dev] Deploy theme as module and simplified creating theme for embedding

Bill Burke bburke at redhat.com
Fri Mar 20 09:57:58 EDT 2015


+1.  I know it was a pain creating the theme for Aerogear quickstart. 
Also thought the directory structure was weird, so +1 to that too.

On 3/20/2015 9:53 AM, Stian Thorgersen wrote:
> I've introduce the concept of a theme packaged as a JAR. This makes it possible to deploy a theme as a module (which is nice for domain mode) and simplifies creating themes when KC is embedded into other projects.
>
> A theme JAR consists of:
>
> * META-INF/keycloak-themes.json           A description of what themes are included in the jar
> * theme/<theme type>/<theme name>         Templates, resources, etc as before
>
> Basically there's no longer any need to implement your own theme provider just to bundle a theme as a jar :)
>
> While doing this I realised that the structure of:
>
> * <theme type>/<theme name>
>
> Is wrong! It should be:
>
> * <theme name>/<theme type>
>
> Anyone have an objection to changing that? The reasoning is that it will be common to create a theme of different variants and having the theme name as the root makes it easier to copy to standalone/configuration/themes as well as groups everything for a theme into one place.
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-dev mailing list