chore: Adds theme optimisation and default theme layer#163
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #163 +/- ##
==========================================
+ Coverage 97.52% 97.57% +0.05%
==========================================
Files 48 48
Lines 2621 2637 +16
Branches 508 549 +41
==========================================
+ Hits 2556 2573 +17
+ Misses 65 64 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jkuelz
approved these changes
Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
The PR introduces default CSS layer wrapping the base theme. This is a preparation for the follow-up change to generate override themes as .css files (see prototype: cloudscape-design/components#4416), in addition to the current build-time theming approach. The override themes will use a separate layer with a higher priority to ensure it is applied on top of the base theme.
Additionally, the PR includes several output optimisations (AWSUI-16016):
Testing
In the components repository, I ran the project build to see how the changes affect the generated base-component styles, where the theme declarations live:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.