Skip to content

fix(tools): correct strip unused theming base content #12133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nnaydenow
Copy link
Contributor

Previously, the regex approach did not correctly handle CSS variables related to fonts, causing it to match everything following the --sapFont variables. This resulted in some CSS variables being missed.

Now, PostCSS is used to remove unused theming base content. This is achieved by leveraging the PostCSS AST to traverse all rules within parameters-bundle.css files and process their declarations.

@nnaydenow nnaydenow requested review from pskelin and ilhan007 August 14, 2025 12:13
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