-
Notifications
You must be signed in to change notification settings - Fork 257
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
feat(ui): component theming #4883
Conversation
|
/** | ||
* [📖 Docs](https://ui.docs.amplify.aws/react/components/theme) | ||
*/ | ||
export const Theme: ThemeType = Object.assign( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add {} here
@@ -13,6 +13,11 @@ | |||
"import": "./dist/esm/internal.mjs", | |||
"require": "./dist/internal.js" | |||
}, | |||
"./theme": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to server
Element | ||
>; | ||
|
||
const ThemePrimitive: Primitive<ThemeProps, 'div'> = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add @experimental
Description of changes
Splitting up this PR. First one just adds functionality. Next ones will add examples and docs.
Adding the ability to completely theme components (with any css property). This opens up a few critical use-cases:
Issue #, if available
Description of how you validated changes
Checklist
yarn test
passes and tests are updated/addedsideEffects
field updatedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.