keycloakify / keycloakify-starter

🔑 Keycloakify Projects Starter Template
http://keycloakify.dev
MIT License
230 stars 180 forks source link

Doc needed about theming colors #29

Closed GioviQ closed 1 month ago

GioviQ commented 1 month ago

Inspecting html I discovered that Patternfly is used.

Please can you provide some hints in docs to change colors globally in keycloakify-starter?

https://www.patternfly.org/design-foundations/colors

GioviQ commented 1 month ago

I see now the Patternfly is quoted in Account Theme only in https://docs.keycloakify.dev/account-theme/single-page

garronej commented 1 month ago

Hello @GioviQ,

Yes, PatternFly is the CSS framework used by RedHat for building all their UIs, and since Keycloak is a RedHat product, it naturally uses PatternFly as well.

However, most developers creating Keycloak themes prefer to use other, more widely adopted solutions instead of relying on PatternFly. That being said, overriding PatternFly's colors is still a good approach, and there isn’t anything specific to Keycloakify that would complicate this. You can simply refer to the official PatternFly documentation for guidance.

For example, to change the theme colors, you can do something like this:

code example image

And here’s what the result will look like:

theme result
GioviQ commented 1 month ago

I don't know why but in my case overriding css variables does not work.

garronej commented 1 month ago

My two first screenshot are from the starter repo, all I did was adding the main.css file and import it.

GioviQ commented 1 month ago

I am aging, I don't see well anymore, there was a "-" missing in variables names. Sorry.

garronej commented 1 month ago

Haha not problem!

You should give ChatGPT a try, this is how I got the answer:

image image
GioviQ commented 1 month ago

Thanks Next step trying to understand how to add missing italian translations to Account UI Single-page... 😫