-
Notifications
You must be signed in to change notification settings - Fork 247
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
Stripe color theme override, is it possible? #331
Comments
@richardchunyc
In order to change the colors, you would thus have to create a theme that gets injected in your application. Note also that import { createTheme } from '@material-ui/core/styles';
import blue from '@material-ui/core/colors/blue';
// You might want to pick some colors that go better together…
const theme = createTheme({
palette: {
primary: {
light: "orange",
},
divider: "black,
background: {
paper: "violet",
},
error: {
main: "silver",
light: "red",
dark: "green",
},
text: {
primary: "yellow",
},
},
}); Do note however that these colors also affect other components that are not necessarily related to one another. As such, it would probably be a good idea to wrap the const theme = createTheme({}); // Default theme for the rest of the application
const dropzoneTheme = createTheme({ /* Theming as described earlier. */});
export const App = () => {
return <ThemeProvider theme={theme}>
<ThemeProvider theme={dropzoneTheme}>
<DropzoneArea onChange={()=>{ }}/>
</ThemeProvider>
</ThemProvider>
} (Above code is untested, so might not be 100% accurate, but should get the idea accross.) |
hello,
anyone have experience overriding the stripe color theme? Any help would be greatly appreciated. Thanks.
The text was updated successfully, but these errors were encountered: