Skip to content
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

Expose background color css api for global theme and authenticator #5936

Merged
merged 2 commits into from
May 28, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:host {
--background-color: var(--amplify-background-color);
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const logger = new Logger('Authenticator');

@Component({
tag: 'amplify-authenticator',
styleUrl: 'amplify-authenticator.scss',
shadow: true,
})
export class AmplifyAuthenticator {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
:host {
--background-color: var(--amplify-white);
--font-family: var(--amplify-font-family);
}


.section {
position: relative;
margin-bottom: 20px;
Expand Down
2 changes: 2 additions & 0 deletions packages/amplify-ui-components/src/global/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ if (browserOrNode().isBrowser) {
--amplify-tertiary-tint: #7da1ff;
--amplify-tertiary-shade: #537BE5;

--amplify-background-color: var(--amplify-white);

/* Neutral */
--amplify-grey: #828282;
--amplify-light-grey: #c4c4c4;
Expand Down
3 changes: 2 additions & 1 deletion packages/amplify-ui-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"build": "npm run clean && npm run compile",
"clean": "rm -rf dist",
"compile": "npm run tsc",
"tsc": "tsc -p ."
"tsc": "tsc -p .",
"watch": "tsc -w -p ."
}
}