[quick-theme] Show login page and change basic attributes#45483
[quick-theme] Show login page and change basic attributes#45483vmuzikar merged 3 commits intokeycloak:mainfrom
Conversation
|
👍 I like this |
|
what also would be cool, maybe outside of this PR, but to be able to set other things like rounded corners, see this link for some more ideas https://keycloak-theme-editor.tpvk7sed8.workers.dev/ |
@edewit Yes, that's true. We could provide some basic attributes by default that are frequently changed - rounder corners, background properties,... And if it's not sufficient, there might be also a custom text input box for custom CSS (with all these validations of course). There should be also a capability to change the name of the theme. |
a953656 to
997d296
Compare
|
@mabartos I like this too. However, at first it wasn't clear to me that I would need to scroll down to see the original WYSIWYG that was more based on admin console. Maybe this is more clear if I was looking at it live rather than in the video? Any ideas? |
|
@ssilvert Thanks for the comment. This is the initial form and it still needs some improvements. At this moment, the login preview is on top and the admin preview is under that. However, I thought that we could provide some Init page when users want to customize themes. That they could choose what component they want to customize (login, account, admin, or all) and the specific preview would be shown. Captured here: #45531 Or there might be some 3 way "switch" at the top of the preview "Login | Account | Admin", and only one could be choosen and then shown. And admins could just switch to other preview to see how it looks like for other previews. But we can discuss more :) |
|
@edewit As we discussed, this initiative will be more targeted to 26.7, but if you have some spare time, you could check it and potentially add whatever suits to the TS changes. |
|
@ssilvert it moves down when there isn't enough room if you make your screen a bit wider then if fits. What we could do is collapse the sidebar on this screen so that the user has more room to edit. Right now when you "design" a theme it creates a theme that can be applied to all "apps", you can then opt to only use it for the login once installed, so I don't think we need to ask a user here what they want to theme. So I rather have a tab control so they can see what the changes look like for the different "apps". |
edewit
left a comment
There was a problem hiding this comment.
I have a small fix mabartos#1138
f283e2e to
8261b05
Compare
|
@edewit LGTM. |
8261b05 to
7d14c33
Compare
|
@vmuzikar Yes :) |
|
@mabartos I just gave your branch quick-theme-login, but on my machine it still looks like this: Additionally, MacOS reports the generated quick-theme.jar as potentially mallicios - I needed to extract it via the terminal to view it's contents. Some additional feedback:
I'm looking forward to this feature finally being implemented! |
|
@thomasdarimont Oops, that's weird... I'll check it tomorrow. Thanks! Nice list of possible improvements though! |
f0ea6da to
97aa297
Compare
mabartos
left a comment
There was a problem hiding this comment.
@thomasdarimont I was able to reproduce the issue and now it should work - trying it with Vite introduced an illusion that all resources (CSS) are present.
@edewit I just fetch the default background and logo from the keycloak.v2 theme resources, so we don't need to duplicate it anywhere. The same with the default styles.css
@edewit Can you review it again? Thanks!
97aa297 to
4ddd1e7
Compare
|
Resolved conflict and rebased. I can confirm it works even with the new light/dark switch: Screencast.From.2026-02-12.13-54-36.mp4 |
Closes keycloak#45524 Signed-off-by: Martin Bartoš <[email protected]>
4ddd1e7 to
22d8e8b
Compare
|
@edewit Fixed lint error. |
Signed-off-by: Martin Bartoš <[email protected]>
vmuzikar
left a comment
There was a problem hiding this comment.
Approving based on other reviews.
🎉 How to extend your theme with the Quick theme?
1. Create the custom theme with custom logo, background and colors
Screencast.From.2026-01-15.16-54-04.mp4
2. Add the created JAR to the
/providersfolderAnd change the login theme to your new theme:
Screencast.From.2026-01-15.17-05-43.mp4
@edewit @ssilvert @stianst Let me know if you like the way it goes or not :)