We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
React
Authenticator, Storage (Storage Manager)
next.js
Chrome
us-west-1
I am expecting this to enable dark mode but it is still white. Are there steps I am missing?
<ThemeProvider colorMode="dark"> <Card> <Button>Hello</Button> <Text variation="primary">Primary text</Text> <Text variation="secondary">Secondary text</Text> <Text variation="tertiary">Tertiary text</Text> </Card> </ThemeProvider>
Expect components to be dark instead of white.
I cannot get any component to use dark mode.
No response
The text was updated successfully, but these errors were encountered:
Hi @booboothefool, are you passing a dark theme override to the ThemeProvider? Amplify UI has one that you can use, see an example here.
ThemeProvider
Sorry, something went wrong.
Oh, I didn't realize I needed overrides: [defaultDarkModeOverride] because I was already specifying colorMode="dark". That worked, thank you!
overrides: [defaultDarkModeOverride]
colorMode="dark"
<ThemeProvider theme={{ name: 'my-theme', overrides: [defaultDarkModeOverride] }} colorMode="dark" >
No branches or pull requests
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Authenticator, Storage (Storage Manager)
How is your app built?
next.js
What browsers are you seeing the problem on?
Chrome
Which region are you seeing the problem in?
us-west-1
Please describe your bug.
I am expecting this to enable dark mode but it is still white. Are there steps I am missing?
What's the expected behaviour?
Expect components to be dark instead of white.
Help us reproduce the bug!
I cannot get any component to use dark mode.
Code Snippet
No response
Console log output
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: