Univention Bugzilla – Bug 56458
Extend theme: border-radius and color for buttons and login specific variables
Last modified: 2023-08-23 14:54:17 CEST
In order to easily adjust the appearance of our web pages via a theme, we need more variables. This was recognized when trying to customize the Keycloak login page. We would need: --border-radius-container --border-radius-interactable (currently they exist in UMC only, we need them "globally") --button-text-color Currently, it is --font-color-contrast-high by inheritance. But this proves to be a problem if your background color is white-ish (=> contrast is dark), but your primary color is deep blue (=> contrast would be light). You cannot easily theme the page so that you can read text on containers AND buttons. --login-background --login-logo These two are not very global, they would only be used in Keycloak. But we should mention them here because otherwise we don't know where to "document" them. Keycloak does not have a real custom.css. This has already been done for the serveroverview. Disadvantage would be that without knowledge, one would assume that they apply to SimpleSAMLphp, too. I expect little new themes to be created for SimpleSAMLphp with the replacement by Keycloak on the horizon. So I think it is okay; we don't aggressively advertise these new variables anyway. We just have them for reference in the code.
Also added --login-box-background I had to make sure that with this update and new variables, old themes still work, although they are based off of (copied from) themes that did not have these variables. univention-web.yaml 3eebfe93fa10 | Bug #56458: Extend theme with border-radius and color for buttons as well as login specific variables univention-web (4.0.4-3) 3eebfe93fa10 | Bug #56458: Extend theme with border-radius and color for buttons as well as login specific variables
OK: new variables OK: YAML OK: Theme works with old themes (checked mv theme) OK: Keycloak themes Verified
<https://errata.software-univention.de/#/?erratum=5.0x786>