Skip to content

Conversation

@michaeldowseza
Copy link
Member

@michaeldowseza michaeldowseza commented Aug 19, 2025

Description

Creates a components-themeable directory in the lib folder similar to what is created in the components package.

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.17%. Comparing base (0c6e055) to head (b54e254).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #85   +/-   ##
=======================================
  Coverage   96.17%   96.17%           
=======================================
  Files          29       29           
  Lines         679      679           
  Branches      114      114           
=======================================
  Hits          653      653           
  Misses         26       26           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@michaeldowseza michaeldowseza force-pushed the components-themeable branch 2 times, most recently from 9b1e28c to f1de511 Compare August 19, 2025 14:48
- Include required files to create a themeable package
@michaeldowseza michaeldowseza changed the title chore: Create a themeable version of chat components chore: Include missing folders needed for themeable artifact Aug 19, 2025
@michaeldowseza michaeldowseza marked this pull request as ready for review August 19, 2025 15:18
@michaeldowseza michaeldowseza requested a review from a team as a code owner August 19, 2025 15:18
@michaeldowseza michaeldowseza requested review from YueyingLu and removed request for a team August 19, 2025 15:18
@@ -0,0 +1,8 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// SPDX-License-Identifier: Apache-2.0
import { join } from "node:path";

import { buildThemedComponents as themingCoreBuild } from "@cloudscape-design/theming-build";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

baseThemeId?: string;
}

export function buildThemedComponents({ theme, outputDir, baseThemeId }: BuildThemedComponentsParams): Promise<void> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to consider an option to allow overriding the specific component imports so this can use the themed components as its peer dependency.

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