Skip to content

Conversation

nnaydenow
Copy link
Contributor

@nnaydenow nnaydenow commented Oct 15, 2025

Scope and package --sap CSS variables with the web components package. Use the default value initially for each theme, and apply the --sap CSS variables only if an external theme is detected.

Page with Web Components

  • Uses scoped --sap CSS variables.
  • Each variable is derived from the original CSS variable name, with a default value per theme provided by @sap-theming/theming-base-content as a fallback.

Page with Web Components + Additional @sap-theming/theming-base-content

  • Also uses scoped --sap CSS variables.
  • In this setup, the active theme is determined by the loaded theming base content, regardless of the theme set for the web components.
  • The theme set for the web components is only used as a fallback when a CSS variable is missing in the loaded theming base content.

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Oct 15, 2025

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 15, 2025 10:39 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 16, 2025 07:12 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview October 20, 2025 10:59 Inactive
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.

2 participants