Skip to content

Let a custom project's theme add stylesheets - #40

Draft
Ekhorn wants to merge 1 commit into
28-migrate-kc-themes-to-vaadin-part-4from
28-migrate-kc-themes-to-vaadin-part-5
Draft

Ekhorn wants to merge 1 commit into
28-migrate-kc-themes-to-vaadin-part-4from
28-migrate-kc-themes-to-vaadin-part-5

Conversation

@Ekhorn

@Ekhorn Ekhorn commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

A child theme with parent=openremote can override a page's .ftl and ship its own
resources, but its CSS never loads: styles= in theme.properties becomes a
only in a FreeMarker theme, and these pages are a compiled bundle.

The pages now read orStyles from the theme properties Keycloak already sends and
append a each, after the bundle's own so the child wins where specificity
ties. Not Keycloak's own styles=, which is inherited from the fallback theme and
renders the pages this theme does not implement.


Stack created with GitHub Stacks CLI • Give Feedback 💬

@Ekhorn
Ekhorn added this pull request to stack #41 October 2, 2026 13:24
A child theme with parent=openremote can override a page's .ftl and ship its own
resources, but its CSS never loads: `styles=` in theme.properties becomes a <link>
only in a FreeMarker theme, and these pages are a compiled bundle.

The pages now read `orStyles` from the theme properties Keycloak already sends and
append a <link> each, after the bundle's own so the child wins where specificity
ties. Not Keycloak's own `styles=`, which is inherited from the fallback theme and
renders the pages this theme does not implement.
@Ekhorn
Ekhorn force-pushed the 28-migrate-kc-themes-to-vaadin-part-5 branch from 0f0d6d7 to b4d92c5 Compare October 2, 2026 14:01
@Ekhorn Ekhorn self-assigned this Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant